|
hoshi-lang dev
Yet another programming language
|


Go to the source code of this file.
Classes | |
| struct | YoiVoidCallableInterface |
| struct | YoiResultUnsignedAndIntObject |
Typedefs | |
| typedef pthread_t | YoiThreadHandle |
| typedef pthread_t | YoiThreadId |
Functions | |
| YoiResultUnsignedAndIntObject * | runtime_start_thread (YoiVoidCallableInterface *callable) |
| YoiIntegerObject * | runtime_thread_join (YoiUnsignedObject *thread_handle) |
| uint64_t | runtime_get_thread_id () |
| uint64_t | runtime_thread_hardware_concurrency () |
| YoiIntegerObject * | runtime_ping_thread (YoiUnsignedObject *thread_id_obj) |
| YoiResultUnsignedAndIntObject * | runtime_thread_new_mutex_lock () |
| void | runtime_thread_finalize_mutex_lock (YoiUnsignedObject *handle) |
| void | runtime_thread_mutex_lock (YoiUnsignedObject *mutex_handle) |
| void | runtime_thread_mutex_unlock (YoiUnsignedObject *mutex_handle) |
| YoiIntegerObject * | runtime_thread_mutex_try_lock (YoiUnsignedObject *mutex_handle) |
| YoiResultUnsignedAndIntObject * | runtime_thread_new_condition () |
| void | runtime_thread_condition_wait (YoiUnsignedObject *condition_handle, YoiUnsignedObject *mutex_handle) |
| void | runtime_thread_condition_signal (YoiUnsignedObject *condition_handle) |
| void | runtime_thread_finalize_condition (YoiUnsignedObject *handle) |
| typedef pthread_t YoiThreadHandle |
Definition at line 19 of file threading.h.
| typedef pthread_t YoiThreadId |
Definition at line 20 of file threading.h.
| uint64_t runtime_get_thread_id | ( | ) |
Definition at line 330 of file threading.cpp.
Referenced by hperf_init(), hperf_report_func_enter(), hperf_report_func_leave(), hperf_report_mem_alloc(), hperf_report_mem_free(), and thread_starter_wrapper().

| YoiIntegerObject * runtime_ping_thread | ( | YoiUnsignedObject * | thread_id_obj | ) |
Definition at line 334 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), runtime_object_alloc(), and YoiUnsignedObject::value.

| YoiResultUnsignedAndIntObject * runtime_start_thread | ( | YoiVoidCallableInterface * | callable | ) |
Definition at line 285 of file threading.cpp.
References runtime_object_alloc(), and thread_starter_wrapper().

| void runtime_thread_condition_signal | ( | YoiUnsignedObject * | condition_handle | ) |
Definition at line 459 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), and YoiUnsignedObject::value.

| void runtime_thread_condition_wait | ( | YoiUnsignedObject * | condition_handle, |
| YoiUnsignedObject * | mutex_handle | ||
| ) |
Definition at line 466 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), and YoiUnsignedObject::value.

| void runtime_thread_finalize_condition | ( | YoiUnsignedObject * | handle | ) |
Definition at line 450 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), and YoiUnsignedObject::value.

| void runtime_thread_finalize_mutex_lock | ( | YoiUnsignedObject * | handle | ) |
Definition at line 377 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), and YoiUnsignedObject::value.

| uint64_t runtime_thread_hardware_concurrency | ( | ) |
Definition at line 479 of file threading.cpp.
| YoiIntegerObject * runtime_thread_join | ( | YoiUnsignedObject * | thread_handle | ) |
Definition at line 316 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), runtime_object_alloc(), and YoiUnsignedObject::value.

| void runtime_thread_mutex_lock | ( | YoiUnsignedObject * | mutex_handle | ) |
Definition at line 385 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), and YoiUnsignedObject::value.

| YoiIntegerObject * runtime_thread_mutex_try_lock | ( | YoiUnsignedObject * | mutex_handle | ) |
Definition at line 399 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), runtime_object_alloc(), and YoiUnsignedObject::value.

| void runtime_thread_mutex_unlock | ( | YoiUnsignedObject * | mutex_handle | ) |
Definition at line 392 of file threading.cpp.
References YoiUnsignedObject::gc_refcount, runtime_finalize_object(), and YoiUnsignedObject::value.

| YoiResultUnsignedAndIntObject * runtime_thread_new_condition | ( | ) |
Definition at line 412 of file threading.cpp.
References runtime_object_alloc().

| YoiResultUnsignedAndIntObject * runtime_thread_new_mutex_lock | ( | ) |
Definition at line 346 of file threading.cpp.
References runtime_object_alloc().
