thrd_success

Defined in header <threads.h> enum { thrd_success = /* unspecified */, thrd_nomem = /* unspecified */, thrd_timedout = /* unspecified */, thrd_busy = /* unspecified */, thrd_error = /* unspecified */ }; (since C11) Identifiers a thread error state. Constant Explanation thrd_success indicates successful return value thrd_timedout indicates timed out return value thrd_busy indicates unsuccessful return value due to resource temporary unavail

thrd_sleep

Defined in header <threads.h> int thrd_sleep( const struct timespec* time_point, struct timespec* remaining ); (since C11) Blocks the execution of the current thread for at least until the TIME_UTC based time point pointed to by time_point has been reached. The sleep may resume earlier if a signal that is not ignored is received. In such case, if remaining is not NULL, the remaining time duration is stored into the object pointed to by remaining. Parameter

thrd_join

Defined in header <threads.h> int thrd_join( thrd_t thr, int *res ); (since C11) Blocks the current thread until the thread identified by thr finishes execution. If res is not a null pointer, the result code of the thread is put to the location pointed to by res. The termination of the thread synchronizes-with the completion of this function. The behavior is undefined if the thread was previously detached or joined by another thread. Parameters thr - identifier of t

thrd_exit

Defined in header <threads.h> _Noreturn void thrd_exit( int res ); (since C11) First, for every thread-specific storage key which was created with a non-null destructor and for which the associated value is non-null (see tss_create), thrd_exit sets the value associated with the key to NULL and then invokes the destructor with the previous value of the key. The order in which the destructors are invoked is unspecified. If, after this, there remain keys with both non-null des

thrd_equal

Defined in header <threads.h> int thrd_equal( thrd_t lhs, thrd_t rhs ); (since C11) Checks whether lhs and rhs refer to the same thread. Parameters lhs, rhs - threads to compare Return value Non-zero value if lhs and rhs refer to the same value, ​0​ otherwise. References C11 standard (ISO/IEC 9899:2011): 7.26.5.4 The thrd_equal function (p: 384)

thrd_detach

Defined in header <threads.h> int thrd_detach( thrd_t thr ); (since C11) Detaches the thread identified by thr from the current environment. The resources held by the thread will be freed automatically once the thread exits. Parameters thr - identifier of the thread to detach Return value thrd_success if successful, thrd_error otherwise. References C11 standard (ISO/IEC 9899:2011): 7.26.5.3 The thrd_detach function (p: 383-384) See also thrd_join

thrd_current

Defined in header <threads.h> thrd_t thrd_current(); (since C11) Returns the identifier of the calling thread. Parameters (none). Return value The identifier of the calling thread. References C11 standard (ISO/IEC 9899:2011): 7.26.5.2 The thrd_current function (p: 383)

thrd_create

Defined in header <threads.h> int thrd_create( thrd_t *thr, thrd_start_t func, void *arg ); (since C11) Creates a new thread executing the function func. The function is invoked as func(arg). If successful, the object pointed to by thr is set to the identifier of the new thread. The completion of this function synchronizes-with the beginning of the thread. Parameters thr - pointer to memory location to put the identifier of the new thread func - function to ex

tgamma

Defined in header <math.h> float tgammaf( float arg ); (1) (since C99) double tgamma( double arg ); (2) (since C99) long double tgammal( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define tgamma( arg ) (4) (since C99) 1-3) Computes the gamma function of arg. 4) Type-generic macro: If arg has type long double, tgammal is called. Otherwise, if arg has integer type or the type double, tgamma is called. Otherwise,

tanh

Defined in header <math.h> float tanhf( float arg ); (1) (since C99) double tanh( double arg ); (2) long double tanhl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define tanh( arg ) (4) (since C99) 1-3) Computes the hyperbolic tangent of arg. 4) Type-generic macro: If the argument has type long double, tanhl is called. Otherwise, if the argument has integer type or the type double, tanh is called. Otherwise, t