cwidget  0.5.17
Public Member Functions | Public Attributes | List of all members
cwidget::threads::noncopy_bootstrap< F > Struct Template Reference

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
 

Detailed Description

template<typename F>
struct cwidget::threads::noncopy_bootstrap< 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.

Parameters
Fthe functor type that this structure wraps.

Constructor & Destructor Documentation

◆ noncopy_bootstrap()

template<typename F >
cwidget::threads::noncopy_bootstrap< F >::noncopy_bootstrap ( F &  _f)
inline

Create a noncopyable bootstrap wrapper.

Parameters
_fthe function object to wrap.

Member Function Documentation

◆ operator()()

template<typename F >
void cwidget::threads::noncopy_bootstrap< F >::operator() ( )
inline

Invoke F::operator() on the wrapped object.


The documentation for this struct was generated from the following file: