SuspendCallback< T > Class Template Reference

This Callback wakes a Microthread using a Suspender when run. More...

#include <callback_decls.h>

Inheritance diagram for SuspendCallback< T >:

Callback List of all members.

Public Member Functions

 SuspendCallback (Suspender< T > &s, const T &v)
 SuspendCallback constructor.
void run ()
 This method takes action when the Callback is to be run.
bool iscompleted ()
 
Returns:
true if the Suspender is already wakened


Detailed Description

template<class T>
class SuspendCallback< T >

This Callback wakes a Microthread using a Suspender when run.

The Suspender's wakeup method is invoked with the value given at the constructor.


Constructor & Destructor Documentation

template<class T>
SuspendCallback< T >::SuspendCallback ( Suspender< T > &  s,
const T &  v 
) [inline]

SuspendCallback constructor.

Parameters:
s is the Suspender to be used
v is the object to be passed to Suspender.wakeup()
See also:
Suspender


Member Function Documentation

template<class T>
void SuspendCallback< T >::run (  )  [inline, virtual]

This method takes action when the Callback is to be run.

Derived classes must override this method.

Implements Callback.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1