cwidget
0.5.17
|
Wrap noncopyable objects to bootstrap threads. More...
#include <threads.h>
Public Member Functions | |
noncopy_bootstrap (F &_f) | |
Create a noncopyable bootstrap wrapper. More... | |
void | operator() () |
Invoke F::operator() on the wrapped object. More... | |
Public Attributes | |
F & | f |
Wrap noncopyable objects to bootstrap threads.
Stores a reference to a noncopyable nullary function object in a structure that is suitable as a bootstrap function for a thread.
The contained object is assumed to last for as long as the thread does, and will not be (automatically) deleted or destroyed when the thread terminates.
F | the functor type that this structure wraps. |
|
inline |
Create a noncopyable bootstrap wrapper.
_f | the function object to wrap. |
|
inline |
Invoke F::operator() on the wrapped object.