sbRunnableMethod_< ResultType, TargetType, MethodType > Class Template Referenceabstract

#include <sbThreadUtils.h>

Inheritance diagram for sbRunnableMethod_< ResultType, TargetType, MethodType >:
[legend]
Collaboration diagram for sbRunnableMethod_< ResultType, TargetType, MethodType >:
[legend]

Public Member Functions

 sbRunnableMethod_ (TargetType &aTarget, MethodType aMethod, const char *aName)
 
- Public Member Functions inherited from sbRunnable_< ResultType >
 sbRunnable_ (const char *aName)
 
NS_IMETHOD Run ()
 
ResultType Wait ()
 
PRBool Wait (PRIntervalTime aTimeout, ResultType &aResult)
 
- Public Member Functions inherited from sbRunnable
 sbRunnable (const char *aName)
 
NS_IMETHOD Run ()
 
PRBool Wait (PRIntervalTime aTimeout)
 

Protected Member Functions

virtual ResultType OnRun ()=0
 

Protected Attributes

nsRefPtr< TargetType > mTarget
 
MethodType mMethod
 

Detailed Description

template<typename ResultType, typename TargetType, typename MethodType>
class sbRunnableMethod_< ResultType, TargetType, MethodType >

A subclass template of sbRunnable_<> that captures an object and a method to call when Run() is invoked. A subclass must invoke the method, because this class doesn't know what arguments to pass, if any.

Definition at line 881 of file sbThreadUtils.h.

Constructor & Destructor Documentation

template<typename ResultType , typename TargetType , typename MethodType >
sbRunnableMethod_< ResultType, TargetType, MethodType >::sbRunnableMethod_ ( TargetType &  aTarget,
MethodType  aMethod,
const char *  aName 
)
inline

Definition at line 884 of file sbThreadUtils.h.

Member Function Documentation

Member Data Documentation

template<typename ResultType , typename TargetType , typename MethodType >
MethodType sbRunnableMethod_< ResultType, TargetType, MethodType >::mMethod
protected

Definition at line 902 of file sbThreadUtils.h.

template<typename ResultType , typename TargetType , typename MethodType >
nsRefPtr<TargetType> sbRunnableMethod_< ResultType, TargetType, MethodType >::mTarget
protected

Definition at line 901 of file sbThreadUtils.h.


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