[#BloombergLP-bslmt-ThreadUtilImpl-04-getSpecific] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl<Platform::PosixThreads>]::getSpecific :relfileprefix: ../../../ :mrdocs: Return the calling thread's value associated with the specified key. == Synopsis Declared in `<bslmt_threadutilimpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void* getSpecific(xref:BloombergLP/bslmt/ThreadUtilImpl-04/Key.adoc[Key] const& key); ---- == Description Return the value associated with the specified thread‐specific `key`. Note that if the key is not valid, a value of zero is returned, which is indistinguishable from a valid key with a 0 value. == Return Value the thread‐local value associated with `key` == Parameters [cols="1,4"] |=== | Name| Description | *key* | process‐wide thread‐local key to query |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#