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

Synopsis

Declared in <bslmt_threadutil.h>

static
bsls::Types::Uint64
idAsUint64(Id const& threadId);

Description

Return the unique integral identifier of a thread uniquely identified by the specified threadId within the current process. Note that this representation is particularly useful for logging purposes. Also note that this value is only valid until the thread terminates and may be reused thereafter.

Return Value

unique 64‐bit integral identifier for the thread

Parameters

Name

Description

threadId

thread identifier to convert

Created with MrDocs