|
hoshi-lang dev
Yet another programming language
|
#include "runtime/threading/threading.h"#include "runtime/memory/memory.h"#include <cstdint>#include <errno.h>#include <pthread.h>#include <unistd.h>
Go to the source code of this file.
Classes | |
| struct | ThreadStarterArgs |
| 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_id_obj | ) |
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().

| void * thread_starter_wrapper | ( | void * | args | ) |
Definition at line 260 of file threading.cpp.
References YoiVoidCallableInterface::callable, YoiVoidCallableInterface::gc_dec_func, YoiVoidCallableInterface::gc_refcount, hperf_context_create(), hperf_enabled, runtime_finalize_object(), runtime_get_thread_id(), and YoiVoidCallableInterface::this_ptr.
Referenced by runtime_start_thread().

