Same as the preceding overload, with the specified attributes.
Declared in <bslmt_threadutil.h>
template<class INVOKABLE>
static
int
createWithAllocator(
Handle* handle,
ThreadAttributes const& attributes,
INVOKABLE const& function,
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 | invokable object executed as the thread entry point |
| allocator | memory allocator used to copy function |