[#BloombergLP-bslmt-ThreadUtil-createWithAllocator-0db] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::createWithAllocator :relfileprefix: ../../../ :mrdocs: Create a thread with the specified `attributes` and `allocator`. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int createWithAllocator( xref:BloombergLP/bslmt/ThreadUtil/Handle.adoc[Handle]* handle, xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes] const& attributes, xref:BloombergLP/bslmt/ThreadUtil/ThreadFunction.adoc[ThreadFunction] function, void* userData, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#