[#BloombergLP-bslmt-ThreadUtil-areEqual] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::areEqual :relfileprefix: ../../../ :mrdocs: Return whether the two thread handles identify the same thread. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool areEqual( xref:BloombergLP/bslmt/ThreadUtil/Handle.adoc[Handle] const& a, xref:BloombergLP/bslmt/ThreadUtil/Handle.adoc[Handle] const& b); ---- == Description Return `true` if the specified `a` and `b` thread handles identify the same thread, or if both `a` and `b` are invalid handles, and `false` otherwise. Note that if _either_ of `a` or `b` is an invalid handle, but not both, this method returns `false`. == Return Value `true` if both handles identify the same thread == Parameters [cols="1,4"] |=== | Name| Description | *a* | first thread handle to compare | *b* | second thread handle to compare |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#