[#BloombergLP-bslmt-ThreadUtil-getSpecific]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::getSpecific
:relfileprefix: ../../../
:mrdocs:

Return the thread&hyphen;local value associated with the specified `key`&period; A `key` is shared among all threads and the value associated with `key` for each thread is 0 until it is set by that thread using `setSpecific`&period; The behavior is undefined unless this method is called outside any thread key cleanup function associated with any key by `createKey`, `key` was obtained from a successful call to `createKey`, and `key` has not been deleted&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void*
getSpecific(xref:BloombergLP/bslmt/ThreadUtil/Key.adoc[Key] const& key);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
