create overloads
Declared in <bslmt_threadutilimpl_pthread.h>
Create a thread with default attributes and the given entry point.
static
int
create(
Handle* threadHandle,
bslmt_ThreadFunction function,
void* userData);
» more...
Create a thread with the specified attributes and entry-point function.
static
int
create(
Handle* threadHandle,
ThreadAttributes const& attributes,
bslmt_ThreadFunction function,
void* userData);
» more...
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| threadHandle | receives an identifier for the new thread |
| function | entry-point function invoked by the new thread |
| userData | sole argument passed to function |
| attributes | properties for the new thread |