#include <sbThreadUtils.h>
Public Member Functions | |
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 |
A subclass template of sbRunnable that can return a result.
Definition at line 774 of file sbThreadUtils.h.
|
inline |
Definition at line 780 of file sbThreadUtils.h.
|
protectedpure virtual |
The operation to perform when invoked, as defined by a subclass.
Implemented in sbRunnableMethod5_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Param4Type, Param5Type, Arg1Type, Arg2Type, Arg3Type, Arg4Type, Arg5Type, MethodType >, sbRunnableMethod4_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Param4Type, Arg1Type, Arg2Type, Arg3Type, Arg4Type, MethodType >, sbRunnableMethod3_< ResultType, TargetType, Param1Type, Param2Type, Param3Type, Arg1Type, Arg2Type, Arg3Type, MethodType >, sbRunnableMethod2_< ResultType, TargetType, Param1Type, Param2Type, Arg1Type, Arg2Type, MethodType >, sbRunnableMethod1_< ResultType, TargetType, Param1Type, Arg1Type, MethodType >, and sbRunnableMethod_< ResultType, TargetType, MethodType >.
|
inline |
nsIRunnable run method. Delegates to OnRun(). Subclasses must override OnRun(), not this function.
Definition at line 790 of file sbThreadUtils.h.
|
inline |
Waits indefinitely for OnRun() to complete and returns its result.
Definition at line 802 of file sbThreadUtils.h.
|
inline |
Returns true if OnRun() completes before the timeout lapses, or false otherwise. If true, returns the result of OnRun() in aResult.
Definition at line 815 of file sbThreadUtils.h.