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

Delete the specified process-wide thread-local key.

Synopsis

Declared in <bslmt_threadutilimpl_pthread.h>

static
int
deleteKey(Key& key);

Description

Delete the specified thread-specific key. Return 0 on success, and a non-zero value otherwise. Note that deleting a key does not delete any data that is currently associated with the key in the calling thread or any other thread.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
keyprocess-wide thread-local key to delete