BloombergLP::bslmt::ThreadUtilImpl<Platform::PosixThreads>::setSpecific

Associate the specified value with the key for the calling thread.

Synopsis

Declared in <bslmt_threadutilimpl_pthread.h>

static
int
setSpecific(
    Key const& key,
    void const* value);

Description

Associate the specified value with the specified thread-specific key. Return 0 on success, and a non-zero value otherwise. TBD elaborate on what value represents

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
keyprocess-wide thread-local key to set
valuethread-local pointer value to associate with key