Set the detachedState attribute of this object to the specified value. Return a non‐`const` reference to this object (see also {Fluent Interface}). A value of e_CREATE_JOINABLE (the default) indicates that a thread must be joined to clean up its resources after it terminates; a value of e_CREATE_DETACHED (the only other legal value) indicates that the resources will be cleaned up automatically upon thread termination, and that the thread must not be joined.

Synopsis

Declared in <bslmt_threadattributes.h>

ThreadAttributes&
setDetachedState(DetachedState value);

Created with MrDocs