Create a thread with the specified attributes and allocator.
Declared in <bslmt_threadutil.h>
static
int
createWithAllocator(
Handle* handle,
ThreadAttributes const& attributes,
ThreadFunction function,
void* userData,
bslma::Allocator* allocator);
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| handle | receives an identifier for the new thread |
| attributes | properties for the new thread |
| function | entry-point function invoked by the new thread |
| userData | sole argument passed to function |
| allocator | memory allocator used to supply memory |