threads.ch
Declarations
See Also
- https:en.cppreference.com/w/c/thread
See Also
- https:en.cppreference.com/w/c/thread
See Also
- https:en.cppreference.com/w/c/thread
See Also
- https:en.cppreference.com/w/c/thread
See Also
- https:en.cppreference.com/w/c/thread
See Also
- https:en.cppreference.com/w/c/thread/thrd_errors
Parameters
- lhs, rhs - threads to compare @return Non-zero value if lhs and rhs refer to the same value, 0 otherwise. @see https:en.cppreference.com/w/c/thread/thrd_equal
Returns
Non-zero value if lhs and rhs refer to the same value, 0 otherwise. @see https:en.cppreference.com/w/c/thread/thrd_equal
See Also
- https:en.cppreference.com/w/c/thread/thrd_equal
Returns
The identifier of the calling thread. @see https:en.cppreference.com/w/c/thread/thrd_current
See Also
- https:en.cppreference.com/w/c/thread/thrd_current
Parameters
- duration - pointer to the duration to sleep for @param remaining - pointer to the object to put the remaining time on interruption. May be NULL, in which case it is ignored @return 0 on successful sleep, -1 if a signal occurred, other negative value if an error occurred. @see https:en.cppreference.com/w/c/thread/thrd_sleep
- remaining - pointer to the object to put the remaining time on interruption. May be NULL, in which case it is ignored @return 0 on successful sleep, -1 if a signal occurred, other negative value if an error occurred. @see https:en.cppreference.com/w/c/thread/thrd_sleep
Returns
0 on successful sleep, -1 if a signal occurred, other negative value if an error occurred. @see https:en.cppreference.com/w/c/thread/thrd_sleep
See Also
- https:en.cppreference.com/w/c/thread/thrd_sleep
See Also
- https:en.cppreference.com/w/c/thread/thrd_yield
Parameters
- res - the result value to return @see https:en.cppreference.com/w/c/thread/thrd_exit
See Also
- https:en.cppreference.com/w/c/thread/thrd_exit
Parameters
- thr - identifier of the thread to detach @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/thrd_detach
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/thrd_detach
See Also
- https:en.cppreference.com/w/c/thread/thrd_detach
Parameters
- thr - identifier of the thread to join @param res - location to put the result code to @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/thrd_join
- res - location to put the result code to @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/thrd_join
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/thrd_join
See Also
- https:en.cppreference.com/w/c/thread/thrd_join
Parameters
- mutex - pointer to the mutex to initialize @param type - the type of the mutex @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_init
- type - the type of the mutex @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_init
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_init
See Also
- https:en.cppreference.com/w/c/thread/mtx_init
Parameters
- mutex - pointer to the mutex to lock @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_lock
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_lock
See Also
- https:en.cppreference.com/w/c/thread/mtx_lock
Parameters
- mutex (restricted) - pointer to the mutex to lock @param time_point (restricted) - pointer to the absolute calendar time until which to wait for the timeout @return thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, thrd_error if an error occurs. @see https:en.cppreference.com/w/c/thread/mtx_timedlock
- time_point (restricted) - pointer to the absolute calendar time until which to wait for the timeout @return thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, thrd_error if an error occurs. @see https:en.cppreference.com/w/c/thread/mtx_timedlock
Returns
thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, thrd_error if an error occurs. @see https:en.cppreference.com/w/c/thread/mtx_timedlock
See Also
- https:en.cppreference.com/w/c/thread/mtx_timedlock
Parameters
- mutex - pointer to the mutex to lock @return thrd_success if successful, thrd_busy if the mutex has already been locked or due to a spurious failure to acquire an available mutex, thrd_error if an error occurs. @see https:en.cppreference.com/w/c/thread/mtx_trylock
Returns
thrd_success if successful, thrd_busy if the mutex has already been locked or due to a spurious failure to acquire an available mutex, thrd_error if an error occurs. @see https:en.cppreference.com/w/c/thread/mtx_trylock
See Also
- https:en.cppreference.com/w/c/thread/mtx_trylock
Parameters
- mutex - pointer to the mutex to unlock @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_unlock
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/mtx_unlock
See Also
- https:en.cppreference.com/w/c/thread/mtx_unlock
Parameters
- mutex - pointer to the mutex to destroy @see https:en.cppreference.com/w/c/thread/mtx_destroy
See Also
- https:en.cppreference.com/w/c/thread/mtx_destroy
See Also
- https:en.cppreference.com/w/c/thread/mtx_types
Parameters
- flag - pointer to an object of type call_once that is used to ensure func is called only once @param func - the function to execute only once @see https:en.cppreference.com/w/c/thread/call_once
- func - the function to execute only once @see https:en.cppreference.com/w/c/thread/call_once
See Also
- https:en.cppreference.com/w/c/thread/call_once
Parameters
- cond - pointer to a variable to store identifier of the condition variable to @return thrd_success if the condition variable was successfully created. Otherwise returns thrd_nomem if there was insufficient amount of memory or thrd_error if another error occurred.
Returns
thrd_success if the condition variable was successfully created. Otherwise returns thrd_nomem if there was insufficient amount of memory or thrd_error if another error occurred.
Parameters
- cond - pointer to a condition variable @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_signal
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_signal
See Also
- https:en.cppreference.com/w/c/thread/cnd_signal
Parameters
- cond - pointer to a condition variable @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_broadcast
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_broadcast
See Also
- https:en.cppreference.com/w/c/thread/cnd_broadcast
Parameters
- cond - pointer to the condition variable to block on @param mutex - pointer to the mutex to unlock for the duration of the block @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_wait
- mutex - pointer to the mutex to unlock for the duration of the block @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_wait
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/cnd_wait
See Also
- https:en.cppreference.com/w/c/thread/cnd_wait
Parameters
- cond - pointer to the condition variable to block on @param mutex - pointer to the mutex to unlock for the duration of the block @param time_point - pointer to an object specifying timeout time to wait until @return thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, or thrd_error if an error occurred. @see https:en.cppreference.com/w/c/thread/cnd_timedwait
- mutex - pointer to the mutex to unlock for the duration of the block @param time_point - pointer to an object specifying timeout time to wait until @return thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, or thrd_error if an error occurred. @see https:en.cppreference.com/w/c/thread/cnd_timedwait
- time_point - pointer to an object specifying timeout time to wait until @return thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, or thrd_error if an error occurred. @see https:en.cppreference.com/w/c/thread/cnd_timedwait
Returns
thrd_success if successful, thrd_timedout if the timeout time has been reached before the mutex is locked, or thrd_error if an error occurred. @see https:en.cppreference.com/w/c/thread/cnd_timedwait
See Also
- https:en.cppreference.com/w/c/thread/cnd_timedwait
Parameters
- cond - pointer to the condition variable to destroy @see https:en.cppreference.com/w/c/thread/cnd_destroy
See Also
- https:en.cppreference.com/w/c/thread/cnd_destroy
Parameters
- tss_key - pointer to memory location to store the new thread-specific storage key @param destructor - pointer to a function to call at thread exit @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/tss_create
- destructor - pointer to a function to call at thread exit @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/tss_create
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/tss_create
See Also
- https:en.cppreference.com/w/c/thread/tss_create
Parameters
- tss_key - thread-specific storage key, obtained from tss_create and not deleted by tss_delete @return The value on success, NULL on failure. @see https:en.cppreference.com/w/c/thread/tss_get
Returns
The value on success, NULL on failure. @see https:en.cppreference.com/w/c/thread/tss_get
See Also
- https:en.cppreference.com/w/c/thread/tss_get
Parameters
- tss_id - thread-specific storage key, obtained from tss_create and not deleted by tss_delete @param val - value to set thread-specific storage to @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/tss_set
- val - value to set thread-specific storage to @return thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/tss_set
Returns
thrd_success if successful, thrd_error otherwise. @see https:en.cppreference.com/w/c/thread/tss_set
See Also
- https:en.cppreference.com/w/c/thread/tss_set
Parameters
- tss_id - thread-specific storage key previously returned by tss_create and not yet deleted by tss_delete @see https:en.cppreference.com/w/c/thread/tss_delete
See Also
- https:en.cppreference.com/w/c/thread/tss_delete
See Also