Thread portability layer.
This section describes the thread portability layer. It defines types and functions very close to the pthread API, but it's portable to windows too.
◆ xbt_os_thread_t
Thread data type (opaque structure)
◆ xbt_os_mutex_t
Thread mutex data type (opaque structure)
◆ xbt_os_sem_t
Semaphore data type (opaque structure)
◆ xbt_os_thread_create()
◆ xbt_os_thread_exit()
void xbt_os_thread_exit |
( |
int * |
retcode | ) |
|
◆ xbt_os_thread_self()
◆ xbt_os_thread_self_name()
const char* xbt_os_thread_self_name |
( |
void |
| ) |
|
◆ xbt_os_thread_set_extra_data()
void xbt_os_thread_set_extra_data |
( |
void * |
data | ) |
|
◆ xbt_os_thread_get_extra_data()
void* xbt_os_thread_get_extra_data |
( |
void |
| ) |
|
◆ xbt_os_thread_join()
◆ xbt_os_thread_setstacksize()
void xbt_os_thread_setstacksize |
( |
int |
stack_size | ) |
|
◆ xbt_os_thread_setguardsize()
void xbt_os_thread_setguardsize |
( |
int |
guard_size | ) |
|
◆ xbt_os_thread_bind()
◆ xbt_os_thread_atfork()
int xbt_os_thread_atfork |
( |
void(*)(void) |
prepare, |
|
|
void(*)(void) |
parent, |
|
|
void(*)(void) |
child |
|
) |
| |
◆ xbt_os_mutex_init()
◆ xbt_os_mutex_acquire()
◆ xbt_os_mutex_release()
◆ xbt_os_mutex_destroy()
◆ xbt_os_sem_init()
◆ xbt_os_sem_acquire()
◆ xbt_os_sem_release()
◆ xbt_os_sem_destroy()