cwidget::threads::noncopy_bootstrap< F > Struct Template Reference

Wrap noncopyable objects to bootstrap threads. More...

#include <threads.h>

List of all members.

Public Member Functions

 noncopy_bootstrap (F &_f)
 Create a noncopyable bootstrap wrapper.
void operator() ()
 Invoke F::operator() on the wrapped object.

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:
F the functor type that this structure wraps.

Constructor & Destructor Documentation

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

Create a noncopyable bootstrap wrapper.

Parameters:
_f the function object to wrap.

Member Function Documentation

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:

Generated on Thu Oct 22 19:15:32 2009 for cwidget by  doxygen 1.6.1