BloombergLP::bslmt::ThreadUtil::areEqualId

Return whether the two thread identifiers refer to the same thread.

Synopsis

Declared in <bslmt_threadutil.h>

static
bool
areEqualId(
    Id const& a,
    Id const& b);

Description

Return true if the specified a thread identifier is associated with the same thread as the specified b thread identifier, and false otherwise.

Return Value

true if both identifiers refer to the same thread

Parameters

NameDescription
afirst thread identifier to compare
bsecond thread identifier to compare