[#BloombergLP-bslmt-ThreadUtilImpl-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-0f.adoc[ThreadUtilImpl]<xref:BloombergLP/bslmt/Platform/PosixThreads.adoc[Platform::PosixThreads]> :relfileprefix: ../../ :mrdocs: This class provides a full specialization of `ThreadUtilImpl` for pthreads. == Synopsis Declared in `<bslmt_threadutilimpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> struct xref:BloombergLP/bslmt/ThreadUtilImpl-0f.adoc[ThreadUtilImpl]<xref:BloombergLP/bslmt/Platform/PosixThreads.adoc[Platform::PosixThreads]>; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/ThreadUtilImpl-04/Handle.adoc[`Handle`] | Thread handle type. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/Id.adoc[`Id`] | Thread identifier type. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/Key.adoc[`Key`] | Thread‐specific storage key type. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/NativeHandle-08.adoc[`NativeHandle`] | Native thread handle type. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/ThreadUtilImpl-04/areEqual.adoc[`areEqual`] | Return whether the two thread handles identify the same thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/areEqualId.adoc[`areEqualId`] | Return whether the two thread identifiers refer to the same thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/create-09.adoc[`create`] | `create` overloads | xref:BloombergLP/bslmt/ThreadUtilImpl-04/createKey.adoc[`createKey`] | Create a process‐wide key for thread‐local storage. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/deleteKey.adoc[`deleteKey`] | Delete the specified process‐wide thread‐local key. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/detach.adoc[`detach`] | Detach the thread so its resources are reclaimed on termination. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/exit.adoc[`exit`] | Exit the current thread and return the specified status. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/getMaxSchedulingPriority.adoc[`getMaxSchedulingPriority`] | Return the maximum available scheduling priority for the policy. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/getMinSchedulingPriority.adoc[`getMinSchedulingPriority`] | Return the minimum available scheduling priority for the policy. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/getSpecific.adoc[`getSpecific`] | Return the calling thread's value associated with the specified key. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/getThreadName.adoc[`getThreadName`] | Load the name of the current thread into the specified string. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/handleToId.adoc[`handleToId`] | Return the unique identifier for the thread with the specified handle. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/hardwareConcurrency.adoc[`hardwareConcurrency`] | Return the number of concurrent threads supported by the implementation on success, and 0 otherwise. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/idAsInt.adoc[`idAsInt`] | Return a unique integral identifier for the specified thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/idAsUint64.adoc[`idAsUint64`] | Return a unique 64‐bit integral identifier for the specified thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/join.adoc[`join`] | Wait for the specified thread to terminate and reclaim its resources. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/microSleep.adoc[`microSleep`] | Suspend the current thread for at least the specified duration. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/nativeHandle-0a.adoc[`nativeHandle`] | Return the platform‐specific native handle for the specified thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/self.adoc[`self`] | Return an opaque handle that refers to the current thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/selfId.adoc[`selfId`] | Return a unique identifier for the current thread in this process. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/selfIdAsInt.adoc[`selfIdAsInt`] | Return a unique integral identifier for the current thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/selfIdAsUint64.adoc[`selfIdAsUint64`] | Return a unique 64‐bit integral identifier for the current thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/selfKernelIdAsUint64.adoc[`selfKernelIdAsUint64`] | Return a unique 64‐bit identifier for the current kernel thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/setSpecific.adoc[`setSpecific`] | Associate the specified value with the key for the calling thread. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/setThreadName.adoc[`setThreadName`] | Set the name of the current thread to the specified name. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleep.adoc[`sleep`] | Suspend the current thread for at least the specified relative time. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleepUntil-09.adoc[`sleepUntil`] | Suspend the current thread until the specified absolute time. | xref:BloombergLP/bslmt/ThreadUtilImpl-04/yield.adoc[`yield`] | Yield the processor so another ready thread can run. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/ThreadUtilImpl-04/INVALID_HANDLE.adoc[`INVALID_HANDLE`] | Invalid thread handle value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#