[#BloombergLP-bslmt-ThreadUtilImpl-04-getSpecific]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl&lt;Platform::PosixThreads&gt;]::getSpecific
:relfileprefix: ../../../
:mrdocs:

Return the calling thread&apos;s value associated with the specified key&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutilimpl&lowbar;pthread&period;h&gt;`

[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&hyphen;specific `key`&period; 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&period;

== Return Value

the thread&hyphen;local value associated with `key`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| process&hyphen;wide thread&hyphen;local key to query
|===


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