#include <sbThreadUtils.h>
Public Types | |
typedef sbRunnableMethod_ < ResultType, TargetType, MethodType > | BaseType |
Public Member Functions | |
sbRunnableMethod5_ (TargetType &aTarget, MethodType aMethod, Param1Type aArg1, Param2Type aArg2, Param3Type aArg3, Param4Type aArg4, Param5Type aArg5, const char *aName=NULL) | |
Public Member Functions inherited from sbRunnableMethod_< ResultType, TargetType, MethodType > | |
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 () |
Additional Inherited Members | |
Protected Attributes inherited from sbRunnableMethod_< ResultType, TargetType, MethodType > | |
nsRefPtr< TargetType > | mTarget |
MethodType | mMethod |
A subclass template of sbRunnableMethod_<> for methods that take five arguments. Use the optional Arg*Types to specify the types used to curry arguments if any should differ from the corresponding Param*Type.
For example, if Param2Type is nsISupports *, Arg2Type can be set to nsRefPtr<nsISupports> to ensure that the runnable retains a reference to the argument for the life of the runnable.
Definition at line 1177 of file sbThreadUtils.h.
typedef sbRunnableMethod_<ResultType, TargetType, MethodType> sbRunnableMethod5_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Param4Type, Param5Type, Arg1Type, Arg2Type, Arg3Type, Arg4Type, Arg5Type, MethodType >::BaseType |
Definition at line 1181 of file sbThreadUtils.h.
|
inline |
Capture the object and method to call and the arguments to pass
Definition at line 1187 of file sbThreadUtils.h.
|
inlineprotectedvirtual |
Invokes the captured method on the captured object with the captured arguments and returns its result. A subclass that overrides this function should eventually delegate to it.
Implements sbRunnableMethod_< ResultType, TargetType, MethodType >.
Definition at line 1211 of file sbThreadUtils.h.