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

Associate the specified value with the key for the calling thread&period;

== Synopsis

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

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

== Description

Associate the specified `value` with the specified thread&hyphen;specific `key`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; TBD elaborate on what `value` represents

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| process&hyphen;wide thread&hyphen;local key to set
| *value*
| thread&hyphen;local pointer value to associate with `key`
|===


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