![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX Threads Base option group. More...
Files | |
| file | limits.h |
| <limits.h>: POSIX symbolic constants for limits | |
| file | types.h |
| POSIX fundamental types (<sys/types.h>) | |
Macros | |
| #define | PTHREAD_CANCEL_ASYNCHRONOUS 1 |
| Thread cancellation is performed immediately. | |
| #define | PTHREAD_CANCEL_ENABLE 0 |
| Cancellation is enabled (default). | |
| #define | PTHREAD_CANCEL_DEFERRED 0 |
| Cancellation is deferred until a cancellation point (default). | |
| #define | PTHREAD_CANCEL_DISABLE 1 |
| Cancellation delivery is disabled. | |
| #define | PTHREAD_CANCELED ((void *)-1) |
| Value returned by pthread_join() for a cancelled thread. | |
| #define | PTHREAD_CREATE_DETACHED 1 |
| Thread is created in the detached state. | |
| #define | PTHREAD_CREATE_JOINABLE 0 |
| Thread is created in the joinable state (default). | |
| #define | PTHREAD_MUTEX_DEFAULT 3 |
| Default mutex type; behaviour on deadlock/unlock-by-non-owner is undefined. | |
| #define | PTHREAD_MUTEX_ERRORCHECK 2 |
| Mutex that returns an error on deadlock or unlock by a non-owner. | |
| #define | PTHREAD_MUTEX_NORMAL 0 |
| Non-recursive mutex with no error checks (fastest). | |
| #define | PTHREAD_MUTEX_RECURSIVE 1 |
| Recursive mutex; the owning thread may lock it multiple times. | |
| #define | PTHREAD_MUTEX_ROBUST 4 |
| Robust mutex; the state is recoverable if the owner dies. | |
| #define | PTHREAD_MUTEX_STALLED 1 |
| Mutex is not recovered on owner death (default, for non-robust mutexes). | |
| #define | PTHREAD_ONCE_INIT _PTHREAD_ONCE_INITIALIZER |
| Static initialiser for pthread_once_t objects. | |
| #define | PTHREAD_PRIO_NONE 0 |
| Mutex protocol: no priority inheritance or ceiling. | |
| #define | PTHREAD_PROCESS_SHARED 1 |
| Mutex or barrier attribute: object is shared between processes. | |
| #define | PTHREAD_PROCESS_PRIVATE 0 |
| Mutex or barrier attribute: object is private to the process (default). | |
| #define | PTHREAD_COND_INITIALIZER _PTHREAD_COND_INITIALIZER |
| Static initialiser for pthread_cond_t objects. | |
| #define | PTHREAD_MUTEX_INITIALIZER _PTHREAD_MUTEX_INITIALIZER |
| Static initialiser for pthread_mutex_t objects. | |
| #define | pthread_cleanup_push(_rtn, _arg) |
| Push a cleanup handler onto the calling thread's cleanup stack. | |
| #define | pthread_cleanup_pop(_ex) |
| Pop a cleanup handler from the calling thread's cleanup stack. | |
Functions | |
| int | pthread_kill (pthread_t thread, int sig) |
| Send a signal to a specific thread. | |
| int | pthread_sigmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset) |
| Examine and change blocked signals for the calling thread. | |
| int | pthread_attr_destroy (pthread_attr_t *attr) |
| Destroy a thread attributes object. | |
| int | pthread_attr_getdetachstate (const pthread_attr_t *attr, int *detachstate) |
| Get the detach state attribute of a thread attributes object. | |
| int | pthread_attr_getguardsize (const pthread_attr_t *ZRESTRICT attr, size_t *ZRESTRICT guardsize) |
| Get the guard size attribute of a thread attributes object. | |
| int | pthread_attr_getschedparam (const pthread_attr_t *ZRESTRICT attr, struct sched_param *ZRESTRICT param) |
| Get the scheduling parameter attribute of a thread attributes object. | |
| int | pthread_attr_init (pthread_attr_t *attr) |
| Initialise a thread attributes object with default values. | |
| int | pthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate) |
| Set the detach state attribute of a thread attributes object. | |
| int | pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize) |
| Set the guard size attribute of a thread attributes object. | |
| int | pthread_attr_setschedparam (pthread_attr_t *ZRESTRICT attr, const struct sched_param *ZRESTRICT param) |
| Set the scheduling parameter attribute of a thread attributes object. | |
| int | pthread_cancel (pthread_t thread) |
| Send a cancellation request to a thread. | |
| int | pthread_cond_broadcast (pthread_cond_t *cond) |
| Broadcast a condition variable, waking all waiting threads. | |
| int | pthread_cond_destroy (pthread_cond_t *cond) |
| Destroy a condition variable. | |
| int | pthread_cond_init (pthread_cond_t *ZRESTRICT cond, const pthread_condattr_t *ZRESTRICT attr) |
| Initialise a condition variable. | |
| int | pthread_cond_signal (pthread_cond_t *cond) |
| Signal a condition variable, waking at least one waiting thread. | |
| int | pthread_cond_timedwait (pthread_cond_t *ZRESTRICT cond, pthread_mutex_t *ZRESTRICT mutex, const struct timespec *ZRESTRICT abstime) |
| Wait on a condition variable with an absolute timeout (CLOCK_REALTIME). | |
| int | pthread_cond_wait (pthread_cond_t *ZRESTRICT cond, pthread_mutex_t *ZRESTRICT mutex) |
| Wait on a condition variable. | |
| int | pthread_condattr_destroy (pthread_condattr_t *attr) |
| Destroy a condition variable attributes object. | |
| int | pthread_condattr_getclock (const pthread_condattr_t *ZRESTRICT attr, clockid_t *ZRESTRICT clock_id) |
| Get the clock attribute of a condition variable attributes object. | |
| int | pthread_condattr_getpshared (const pthread_condattr_t *ZRESTRICT attr, int *ZRESTRICT pshared) |
| Get the process-shared attribute of a condition variable attributes object. | |
| int | pthread_condattr_init (pthread_condattr_t *attr) |
| Initialise a condition variable attributes object with default values. | |
| int | pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock_id) |
| Set the clock attribute of a condition variable attributes object. | |
| int | pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) |
| Set the process-shared attribute of a condition variable attributes object. | |
| int | pthread_create (pthread_t *ZRESTRICT thread, const pthread_attr_t *ZRESTRICT attr, void *(*start_routine)(void *), void *ZRESTRICT arg) |
| Create a new thread. | |
| int | pthread_detach (pthread_t thread) |
| Detach a thread, releasing its resources automatically on termination. | |
| int | pthread_equal (pthread_t t1, pthread_t t2) |
| Compare two thread IDs. | |
| void | pthread_exit (void *value_ptr) |
| Terminate the calling thread. | |
| void * | pthread_getspecific (pthread_key_t key) |
| Get the thread-specific value associated with a key. | |
| int | pthread_join (pthread_t thread, void **value_ptr) |
| Wait for a thread to terminate and retrieve its exit status. | |
| int | pthread_key_create (pthread_key_t *key, void(*destructor)(void *)) |
| Create a thread-specific data key. | |
| int | pthread_key_delete (pthread_key_t key) |
| Delete a thread-specific data key. | |
| int | pthread_mutex_consistent (pthread_mutex_t *mutex) |
| Mark a robust mutex as consistent after recovering from owner death. | |
| int | pthread_mutex_destroy (pthread_mutex_t *mutex) |
| Destroy a mutex. | |
| int | pthread_mutex_init (pthread_mutex_t *ZRESTRICT mutex, const pthread_mutexattr_t *ZRESTRICT attr) |
| Initialise a mutex. | |
| int | pthread_mutex_lock (pthread_mutex_t *mutex) |
| Lock a mutex, blocking until it is available. | |
| int | pthread_mutex_timedlock (pthread_mutex_t *ZRESTRICT mutex, const struct timespec *ZRESTRICT abstime) |
| Lock a mutex with an absolute timeout. | |
| int | pthread_mutex_trylock (pthread_mutex_t *mutex) |
| Try to lock a mutex without blocking. | |
| int | pthread_mutex_unlock (pthread_mutex_t *mutex) |
| Unlock a mutex. | |
| int | pthread_mutexattr_destroy (pthread_mutexattr_t *attr) |
| Destroy a mutex attributes object. | |
| int | pthread_mutexattr_getpshared (const pthread_mutexattr_t *ZRESTRICT attr, int *ZRESTRICT pshared) |
| Get the process-shared attribute of a mutex attributes object. | |
| int | pthread_mutexattr_getrobust (const pthread_mutexattr_t *ZRESTRICT attr, int *ZRESTRICT robust) |
| Get the robustness attribute of a mutex attributes object. | |
| int | pthread_mutexattr_gettype (const pthread_mutexattr_t *ZRESTRICT attr, int *ZRESTRICT type) |
| Get the type attribute of a mutex attributes object. | |
| int | pthread_mutexattr_init (pthread_mutexattr_t *attr) |
| Initialise a mutex attributes object with default values. | |
| int | pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared) |
| Set the process-shared attribute of a mutex attributes object. | |
| int | pthread_mutexattr_setrobust (pthread_mutexattr_t *attr, int robust) |
| Set the robustness attribute of a mutex attributes object. | |
| int | pthread_mutexattr_settype (pthread_mutexattr_t *attr, int type) |
| Set the type attribute of a mutex attributes object. | |
| int | pthread_once (pthread_once_t *once_control, void(*init_routine)(void)) |
| Ensure a one-time initialisation routine is called exactly once. | |
| pthread_t | pthread_self (void) |
| Return the thread ID of the calling thread. | |
| int | pthread_setcancelstate (int state, int *oldstate) |
| Set the cancellability state of the calling thread. | |
| int | pthread_setcanceltype (int type, int *oldtype) |
| Set the cancellability type of the calling thread. | |
| int | pthread_setspecific (pthread_key_t key, const void *value) |
| Set the thread-specific value associated with a key. | |
| void | pthread_testcancel (void) |
| Create a cancellation point in the calling thread. | |
| int | sched_yield (void) |
| Yield the processor to another thread of equal or higher priority. | |
POSIX Threads Base option group.
| #define PTHREAD_CANCEL_ASYNCHRONOUS 1 |
| #define PTHREAD_CANCEL_DEFERRED 0 |
| #define PTHREAD_CANCEL_DISABLE 1 |
| #define PTHREAD_CANCEL_ENABLE 0 |
| #define PTHREAD_CANCELED ((void *)-1) |
Value returned by pthread_join() for a cancelled thread.
| #define pthread_cleanup_pop | ( | _ex | ) |
Pop a cleanup handler from the calling thread's cleanup stack.
| _ex | If non-zero, the handler is executed before being removed. |
| #define pthread_cleanup_push | ( | _rtn, | |
| _arg | |||
| ) |
Push a cleanup handler onto the calling thread's cleanup stack.
The handler _rtn is called with _arg when the thread exits or calls pthread_cleanup_pop() with a non-zero argument.
| #define PTHREAD_COND_INITIALIZER _PTHREAD_COND_INITIALIZER |
| #define PTHREAD_CREATE_DETACHED 1 |
| #define PTHREAD_CREATE_JOINABLE 0 |
| #define PTHREAD_MUTEX_DEFAULT 3 |
| #define PTHREAD_MUTEX_ERRORCHECK 2 |
| #define PTHREAD_MUTEX_INITIALIZER _PTHREAD_MUTEX_INITIALIZER |
| #define PTHREAD_MUTEX_NORMAL 0 |
| #define PTHREAD_MUTEX_RECURSIVE 1 |
| #define PTHREAD_MUTEX_ROBUST 4 |
| #define PTHREAD_MUTEX_STALLED 1 |
| #define PTHREAD_ONCE_INIT _PTHREAD_ONCE_INITIALIZER |
| #define PTHREAD_PRIO_NONE 0 |
| #define PTHREAD_PROCESS_PRIVATE 0 |
| #define PTHREAD_PROCESS_SHARED 1 |
| int pthread_attr_destroy | ( | pthread_attr_t * | attr | ) |
Destroy a thread attributes object.
| attr | Thread attributes object to destroy. |
| int pthread_attr_getdetachstate | ( | const pthread_attr_t * | attr, |
| int * | detachstate | ||
| ) |
Get the detach state attribute of a thread attributes object.
| attr | Thread attributes object. |
| detachstate | Output: PTHREAD_CREATE_DETACHED or PTHREAD_CREATE_JOINABLE. |
| int pthread_attr_getguardsize | ( | const pthread_attr_t *ZRESTRICT | attr, |
| size_t *ZRESTRICT | guardsize | ||
| ) |
Get the guard size attribute of a thread attributes object.
| attr | Thread attributes object. |
| guardsize | Output: guard size in bytes. |
| int pthread_attr_getschedparam | ( | const pthread_attr_t *ZRESTRICT | attr, |
| struct sched_param *ZRESTRICT | param | ||
| ) |
Get the scheduling parameter attribute of a thread attributes object.
| attr | Thread attributes object. |
| param | Output: scheduling parameters. |
| int pthread_attr_init | ( | pthread_attr_t * | attr | ) |
Initialise a thread attributes object with default values.
| attr | Thread attributes object to initialise. |
| int pthread_attr_setdetachstate | ( | pthread_attr_t * | attr, |
| int | detachstate | ||
| ) |
Set the detach state attribute of a thread attributes object.
| attr | Thread attributes object. |
| detachstate | PTHREAD_CREATE_DETACHED or PTHREAD_CREATE_JOINABLE. |
| int pthread_attr_setguardsize | ( | pthread_attr_t * | attr, |
| size_t | guardsize | ||
| ) |
Set the guard size attribute of a thread attributes object.
| attr | Thread attributes object. |
| guardsize | Guard size in bytes. |
| int pthread_attr_setschedparam | ( | pthread_attr_t *ZRESTRICT | attr, |
| const struct sched_param *ZRESTRICT | param | ||
| ) |
Set the scheduling parameter attribute of a thread attributes object.
| attr | Thread attributes object. |
| param | Scheduling parameters to apply. |
| int pthread_cancel | ( | pthread_t | thread | ) |
Send a cancellation request to a thread.
| thread | Thread to cancel. |
| int pthread_cond_broadcast | ( | pthread_cond_t * | cond | ) |
Broadcast a condition variable, waking all waiting threads.
| cond | Condition variable to broadcast. |
| int pthread_cond_destroy | ( | pthread_cond_t * | cond | ) |
Destroy a condition variable.
| cond | Condition variable to destroy. |
| int pthread_cond_init | ( | pthread_cond_t *ZRESTRICT | cond, |
| const pthread_condattr_t *ZRESTRICT | attr | ||
| ) |
Initialise a condition variable.
| cond | Condition variable to initialise. |
| attr | Condition variable attributes, or NULL for defaults. |
| int pthread_cond_signal | ( | pthread_cond_t * | cond | ) |
Signal a condition variable, waking at least one waiting thread.
| cond | Condition variable to signal. |
| int pthread_cond_timedwait | ( | pthread_cond_t *ZRESTRICT | cond, |
| pthread_mutex_t *ZRESTRICT | mutex, | ||
| const struct timespec *ZRESTRICT | abstime | ||
| ) |
Wait on a condition variable with an absolute timeout (CLOCK_REALTIME).
| cond | Condition variable. |
| mutex | Associated mutex (must be locked by the caller). |
| abstime | Absolute timeout (CLOCK_REALTIME). |
ETIMEDOUT on timeout, or a positive error number on failure. | int pthread_cond_wait | ( | pthread_cond_t *ZRESTRICT | cond, |
| pthread_mutex_t *ZRESTRICT | mutex | ||
| ) |
Wait on a condition variable.
| cond | Condition variable. |
| mutex | Associated mutex (must be locked by the caller). |
| int pthread_condattr_destroy | ( | pthread_condattr_t * | attr | ) |
Destroy a condition variable attributes object.
| attr | Condition variable attributes object to destroy. |
| int pthread_condattr_getclock | ( | const pthread_condattr_t *ZRESTRICT | attr, |
| clockid_t *ZRESTRICT | clock_id | ||
| ) |
Get the clock attribute of a condition variable attributes object.
| attr | Condition variable attributes object. |
| clock_id | Output: clock ID. |
| int pthread_condattr_getpshared | ( | const pthread_condattr_t *ZRESTRICT | attr, |
| int *ZRESTRICT | pshared | ||
| ) |
Get the process-shared attribute of a condition variable attributes object.
| attr | Condition variable attributes object. |
| pshared | Output: PTHREAD_PROCESS_SHARED or PTHREAD_PROCESS_PRIVATE. |
| int pthread_condattr_init | ( | pthread_condattr_t * | attr | ) |
Initialise a condition variable attributes object with default values.
| attr | Condition variable attributes object to initialise. |
| int pthread_condattr_setclock | ( | pthread_condattr_t * | attr, |
| clockid_t | clock_id | ||
| ) |
Set the clock attribute of a condition variable attributes object.
| attr | Condition variable attributes object. |
| clock_id | Clock ID (e.g. CLOCK_MONOTONIC or CLOCK_REALTIME). |
| int pthread_condattr_setpshared | ( | pthread_condattr_t * | attr, |
| int | pshared | ||
| ) |
Set the process-shared attribute of a condition variable attributes object.
| attr | Condition variable attributes object. |
| pshared | PTHREAD_PROCESS_SHARED or PTHREAD_PROCESS_PRIVATE. |
| int pthread_create | ( | pthread_t *ZRESTRICT | thread, |
| const pthread_attr_t *ZRESTRICT | attr, | ||
| void *(*)(void *) | start_routine, | ||
| void *ZRESTRICT | arg | ||
| ) |
Create a new thread.
| thread | Output: thread ID of the new thread. |
| attr | Thread attributes, or NULL for defaults. |
| start_routine | Thread entry point function. |
| arg | Argument passed to start_routine. |
| int pthread_detach | ( | pthread_t | thread | ) |
Detach a thread, releasing its resources automatically on termination.
| thread | Thread to detach. |
| int pthread_equal | ( | pthread_t | t1, |
| pthread_t | t2 | ||
| ) |
Compare two thread IDs.
| t1 | First thread ID. |
| t2 | Second thread ID. |
t1 and t2 refer to the same thread, 0 otherwise. | void pthread_exit | ( | void * | value_ptr | ) |
Terminate the calling thread.
| value_ptr | Value made available to pthread_join(). |
| void * pthread_getspecific | ( | pthread_key_t | key | ) |
Get the thread-specific value associated with a key.
| key | Thread-specific data key. |
key for the calling thread, or NULL if none. | int pthread_join | ( | pthread_t | thread, |
| void ** | value_ptr | ||
| ) |
Wait for a thread to terminate and retrieve its exit status.
| thread | Thread to wait for. |
| value_ptr | Output: exit value or PTHREAD_CANCELED. |
| int pthread_key_create | ( | pthread_key_t * | key, |
| void(*)(void *) | destructor | ||
| ) |
Create a thread-specific data key.
| key | Output: new key. |
| destructor | Destructor called with the thread's value when the thread exits, or NULL. |
| int pthread_key_delete | ( | pthread_key_t | key | ) |
Delete a thread-specific data key.
| key | Key to delete. |
| int pthread_kill | ( | pthread_t | thread, |
| int | sig | ||
| ) |
Send a signal to a specific thread.
| thread | Target thread. |
| sig | Signal number, or 0 to check thread existence. |
| int pthread_mutex_consistent | ( | pthread_mutex_t * | mutex | ) |
Mark a robust mutex as consistent after recovering from owner death.
| mutex | Robust mutex to mark consistent. |
| int pthread_mutex_destroy | ( | pthread_mutex_t * | mutex | ) |
Destroy a mutex.
| mutex | Mutex to destroy. |
| int pthread_mutex_init | ( | pthread_mutex_t *ZRESTRICT | mutex, |
| const pthread_mutexattr_t *ZRESTRICT | attr | ||
| ) |
Initialise a mutex.
| mutex | Mutex to initialise. |
| attr | Mutex attributes, or NULL for defaults. |
| int pthread_mutex_lock | ( | pthread_mutex_t * | mutex | ) |
Lock a mutex, blocking until it is available.
| mutex | Mutex to lock. |
| int pthread_mutex_timedlock | ( | pthread_mutex_t *ZRESTRICT | mutex, |
| const struct timespec *ZRESTRICT | abstime | ||
| ) |
Lock a mutex with an absolute timeout.
| mutex | Mutex to lock. |
| abstime | Absolute timeout (CLOCK_REALTIME). |
ETIMEDOUT on timeout, or a positive error number on failure. | int pthread_mutex_trylock | ( | pthread_mutex_t * | mutex | ) |
Try to lock a mutex without blocking.
| mutex | Mutex to try to lock. |
EBUSY if already locked, or a positive error number. | int pthread_mutex_unlock | ( | pthread_mutex_t * | mutex | ) |
Unlock a mutex.
| mutex | Mutex to unlock. |
| int pthread_mutexattr_destroy | ( | pthread_mutexattr_t * | attr | ) |
Destroy a mutex attributes object.
| attr | Mutex attributes object to destroy. |
| int pthread_mutexattr_getpshared | ( | const pthread_mutexattr_t *ZRESTRICT | attr, |
| int *ZRESTRICT | pshared | ||
| ) |
Get the process-shared attribute of a mutex attributes object.
| attr | Mutex attributes object. |
| pshared | Output: PTHREAD_PROCESS_SHARED or PTHREAD_PROCESS_PRIVATE. |
| int pthread_mutexattr_getrobust | ( | const pthread_mutexattr_t *ZRESTRICT | attr, |
| int *ZRESTRICT | robust | ||
| ) |
Get the robustness attribute of a mutex attributes object.
| attr | Mutex attributes object. |
| robust | Output: PTHREAD_MUTEX_STALLED or PTHREAD_MUTEX_ROBUST. |
| int pthread_mutexattr_gettype | ( | const pthread_mutexattr_t *ZRESTRICT | attr, |
| int *ZRESTRICT | type | ||
| ) |
Get the type attribute of a mutex attributes object.
| attr | Mutex attributes object. |
| type | Output: PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE, or PTHREAD_MUTEX_DEFAULT. |
| int pthread_mutexattr_init | ( | pthread_mutexattr_t * | attr | ) |
Initialise a mutex attributes object with default values.
| attr | Mutex attributes object to initialise. |
| int pthread_mutexattr_setpshared | ( | pthread_mutexattr_t * | attr, |
| int | pshared | ||
| ) |
Set the process-shared attribute of a mutex attributes object.
| attr | Mutex attributes object. |
| pshared | PTHREAD_PROCESS_SHARED or PTHREAD_PROCESS_PRIVATE. |
| int pthread_mutexattr_setrobust | ( | pthread_mutexattr_t * | attr, |
| int | robust | ||
| ) |
Set the robustness attribute of a mutex attributes object.
| attr | Mutex attributes object. |
| robust | PTHREAD_MUTEX_STALLED or PTHREAD_MUTEX_ROBUST. |
| int pthread_mutexattr_settype | ( | pthread_mutexattr_t * | attr, |
| int | type | ||
| ) |
Set the type attribute of a mutex attributes object.
| attr | Mutex attributes object. |
| type | PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE, or PTHREAD_MUTEX_DEFAULT. |
| int pthread_once | ( | pthread_once_t * | once_control, |
| void(*)(void) | init_routine | ||
| ) |
Ensure a one-time initialisation routine is called exactly once.
| once_control | Pointer to a pthread_once_t initialised with PTHREAD_ONCE_INIT. |
| init_routine | Initialisation function to call at most once. |
| pthread_t pthread_self | ( | void | ) |
Return the thread ID of the calling thread.
| int pthread_setcancelstate | ( | int | state, |
| int * | oldstate | ||
| ) |
Set the cancellability state of the calling thread.
| state | PTHREAD_CANCEL_ENABLE or PTHREAD_CANCEL_DISABLE. |
| oldstate | Output: previous state, or NULL. |
| int pthread_setcanceltype | ( | int | type, |
| int * | oldtype | ||
| ) |
Set the cancellability type of the calling thread.
| type | PTHREAD_CANCEL_DEFERRED or PTHREAD_CANCEL_ASYNCHRONOUS. |
| oldtype | Output: previous type, or NULL. |
| int pthread_setspecific | ( | pthread_key_t | key, |
| const void * | value | ||
| ) |
Set the thread-specific value associated with a key.
| key | Thread-specific data key. |
| value | Value to associate with key for the calling thread. |
Examine and change blocked signals for the calling thread.
| how | SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK. |
| set | Signal set to apply, or NULL. |
| oset | Output: previous signal mask, or NULL. |
| void pthread_testcancel | ( | void | ) |
Create a cancellation point in the calling thread.
If cancellation is pending and enabled, this function does not return.
| int sched_yield | ( | void | ) |
Yield the processor to another thread of equal or higher priority.