BloombergLP::bslmt::ThreadUtilImpl<Platform::PosixThreads>

This class provides a full specialization of ThreadUtilImpl for pthreads.

Synopsis

Declared in <bslmt_threadutilimpl_pthread.h>

template<>
struct ThreadUtilImpl<Platform::PosixThreads>;

Type Aliases

NameDescription
Handle Thread handle type.
Id Thread identifier type.
Key Thread-specific storage key type.
NativeHandle Native thread handle type.

Static Member Functions

NameDescription
areEqual Return whether the two thread handles identify the same thread.
areEqualId Return whether the two thread identifiers refer to the same thread.
create create overloads
createKey Create a process-wide key for thread-local storage.
deleteKey Delete the specified process-wide thread-local key.
detach Detach the thread so its resources are reclaimed on termination.
exit Exit the current thread and return the specified status.
getMaxSchedulingPriority Return the maximum available scheduling priority for the policy.
getMinSchedulingPriority Return the minimum available scheduling priority for the policy.
getSpecific Return the calling thread's value associated with the specified key.
getThreadName Load the name of the current thread into the specified string.
handleToId Return the unique identifier for the thread with the specified handle.
hardwareConcurrency Return the number of concurrent threads supported by the implementation on success, and 0 otherwise.
idAsInt Return a unique integral identifier for the specified thread.
idAsUint64 Return a unique 64-bit integral identifier for the specified thread.
join Wait for the specified thread to terminate and reclaim its resources.
microSleep Suspend the current thread for at least the specified duration.
nativeHandle Return the platform-specific native handle for the specified thread.
self Return an opaque handle that refers to the current thread.
selfId Return a unique identifier for the current thread in this process.
selfIdAsInt Return a unique integral identifier for the current thread.
selfIdAsUint64 Return a unique 64-bit integral identifier for the current thread.
selfKernelIdAsUint64 Return a unique 64-bit identifier for the current kernel thread.
setSpecific Associate the specified value with the key for the calling thread.
setThreadName Set the name of the current thread to the specified name.
sleep Suspend the current thread for at least the specified relative time.
sleepUntil Suspend the current thread until the specified absolute time.
yield Yield the processor so another ready thread can run.

Static Data Members

NameDescription
INVALID_HANDLE Invalid thread handle value.