[#BloombergLP-bslmt-ThreadUtil-idAsInt] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::idAsInt :relfileprefix: ../../../ :mrdocs: Return a unique integral identifier for the specified thread. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int idAsInt(xref:BloombergLP/bslmt/ThreadUtil/Id.adoc[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. DEPRECATED: use `idAsUint64`. == Return Value unique integral identifier for the thread == Parameters [cols="1,4"] |=== | Name| Description | *threadId* | thread identifier to convert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#