Return a unique 64‐bit integral identifier for the current thread.

Synopsis

Declared in <bslmt_threadutil.h>

static
bsls::Types::Uint64
selfIdAsUint64();

Description

Return an integral identifier that can be used to uniquely identify the current thread within the current process. Note that this representation is particularly useful for logging purposes. Also note that this value is valid only until the thread terminates, and may be reused thereafter.

Return Value

unique 64‐bit integral identifier for the current thread

Created with MrDocs