mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
a0b39f886c
* Thread creation * Proper thread creation and exit * Join/Detach protocol * Added semaphore with futex (hopefully fast)
14 lines
342 B
C
14 lines
342 B
C
#ifndef COSMOPOLITAN_LIBC_THREAD_EXIT_H_
|
|
#define COSMOPOLITAN_LIBC_THREAD_EXIT_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
/**
|
|
* @fileoverview exit the current thread
|
|
*/
|
|
|
|
wontreturn void cthread_exit(int);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_THREAD_EXIT_H_ */
|