This struct provides a suite of portable utility functions for managing threads.
Synopsis
Declared in <bslmt_threadutil.h>
struct ThreadUtil;
Type Aliases
Name |
Description |
Prototype for thread‐specific key destructors. |
|
Thread handle type. Use this type to refer to a thread in a platform‐independent way. |
|
Thread identifier type ‐ distinguished from a |
|
Platform‐specific implementation type. |
|
Thread‐specific key type, used to refer to thread‐specific storage. |
|
Platform‐specific thread handle type. |
|
Prototype for thread entry‐point functions. |
Static Member Functions
Name |
Description |
Return whether the two thread handles identify the same thread. |
|
Return whether the two thread identifiers refer to the same thread. |
|
Return a platform scheduling priority for the normalized priority. |
|
|
|
Create a process‐wide key for thread‐local storage. |
|
|
|
Delete the specified process‐wide thread‐local key. |
|
Detach the thread so its resources are reclaimed on termination. |
|
Exit the current thread and return the specified status. |
|
Return the maximum available scheduling priority for the policy. |
|
Return the minimum available scheduling priority for the policy. |
|
Return the calling thread's value associated with the specified key. |
|
Load the name of the current thread into the specified string. |
|
Return the unique identifier for the thread with the specified handle. |
|
Return a hint at the number of concurrent threads supported by this platform on success, and 0 otherwise. |
|
Return a unique integral identifier for the specified thread. |
|
Return a unique 64‐bit integral identifier for the specified thread. |
|
Return a reference to the non‐modifiable |
|
Return whether the two thread handles identify the same thread. |
|
Return whether the two thread identifiers refer to the same thread. |
|
Return whether the next thread creation should fail due to the limit. |
|
Wait for the specified thread to terminate and reclaim its resources. |
|
Suspend the current thread for at least the specified duration. |
|
Return the platform‐specific native handle for the specified thread. |
|
Return an opaque handle that refers to the current thread. |
|
Return a unique identifier for the current thread in this process. |
|
Return a unique integral identifier for the current thread. |
|
Return a unique 64‐bit integral identifier for the current thread. |
|
Return a unique 64‐bit identifier for the current kernel thread. |
|
Associate the specified value with the key for the calling thread. |
|
Enable a thread‐creation failure limit for testing. |
|
Set the name of the current thread to the specified name. |
|
Suspend the current thread for at least the specified relative time. |
|
|
|
Yield the processor so another ready thread can run. |
Created with MrDocs