[#BloombergLP-bslmt-ThreadUtil-isEqual]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::isEqual
:relfileprefix: ../../../
:mrdocs:

Return whether the two thread handles identify the same thread&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isEqual(
    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&period; Note that if _either_ of `a` or `b` is an invalid handle, but not both, this method returns `false`&period;

DEPRECATED&colon; use `areEqual` instead&period;

== 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]#
