|
#define | SB_INVOKE_ON_MAIN_THREAD1(aClassType,aObject,aMethod,aReturnType,aFailureReturnValue,aArg1Type,aArg1Value) |
|
#define | SB_INVOKE_ON_MAIN_THREAD2(aClassType,aObject,aMethod,aReturnType,aFailureReturnValue,aArg1Type,aArg1Value,aArg2Type,aArg2Value) |
|
#define | SB_INVOKE_ON_MAIN_THREAD_ASYNC1(aClassType,aObject,aMethod,aReturnType,aFailureReturnValue,aArg1Type,aArg1Value) |
|
#define | SB_INVOKE_ON_MAIN_THREAD_ASYNC2(aClassType,aObject,aMethod,aReturnType,aFailureReturnValue,aArg1Type,aArg1Value,aArg2Type,aArg2Value) |
|
|
template<class T , class MT , class RT , class A1 > |
RT | sbInvokeOnMainThread1 (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1) |
|
template<class T , class MT , class RT , class A1 , class TH > |
RT | sbInvokeOnThread1 (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1, TH aThread) |
|
template<class T , class MT , class RT , class A1 > |
nsresult | sbInvokeOnMainThread1Async (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1) |
|
template<class T , class MT , class RT , class A1 , class TH > |
nsresult | sbInvokeOnThread1Async (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1, TH aThread) |
|
template<class T , class MT , class RT , class A1 , class A2 > |
RT | sbInvokeOnMainThread2 (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1, A2 aArg2) |
|
template<class T , class MT , class RT , class A1 , class A2 , class TH > |
RT | sbInvokeOnThread2 (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1, A2 aArg2, TH aThread) |
|
template<class T , class MT , class RT , class A1 , class A2 > |
nsresult | sbInvokeOnMainThread2Async (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1, A2 aArg2) |
|
template<class T , class MT , class RT , class A1 , class A2 , class TH > |
nsresult | sbInvokeOnThread2Async (T &aObject, MT aMethod, RT aFailureReturnValue, A1 aArg1, A2 aArg2, TH aThread) |
|
PRBool | SB_IsMainThread (nsIThreadManager *aThreadManager=nsnull) |
|
Songbird Thread Utilities Definitions.
Definition in file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 >
RT sbInvokeOnMainThread1 |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1 |
|
) |
| |
|
inline |
From the main thread, invoke the method specified by aMethod on the object specified by aObject. Return the method's return value. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of first method argument. |
- Returns
- Value returned by invoked method or aFailureReturnValue on failure.
Definition at line 1281 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 >
nsresult sbInvokeOnMainThread1Async |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1 |
|
) |
| |
|
inline |
From the main thread, invoke asynchronously the method specified by aMethod on the object specified by aObject. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of first method argument. |
- Returns
- aFailureReturnValue on failure to invoke
Definition at line 1337 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 , class A2 >
RT sbInvokeOnMainThread2 |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1, |
|
|
A2 |
aArg2 |
|
) |
| |
|
inline |
From the main thread, invoke the method specified by aMethod on the object specified by aObject. Return the method's return value. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of the first argument. |
aArg2 | Value of the second argument |
- Returns
- aFailureReturnValue on failure.
Definition at line 1410 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 , class A2 >
nsresult sbInvokeOnMainThread2Async |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1, |
|
|
A2 |
aArg2 |
|
) |
| |
|
inline |
From the main thread, invoke asynchronously the method specified by aMethod on the object specified by aObject. Return the method's return value. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of the first argument. |
aArg2 | Value of the second argument |
- Returns
- Value returned by invoked method or aFailureReturnValue on failure.
Definition at line 1473 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 , class TH >
RT sbInvokeOnThread1 |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1, |
|
|
TH |
aThread |
|
) |
| |
|
inline |
From the supplied thread, invoke the method specified by aMethod on the object specified by aObject. Return the method's return value. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of first method argument. |
aThread | Thread to run on. |
- Returns
- Value returned by invoked method or aFailureReturnValue on failure.
Definition at line 1309 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 , class TH >
nsresult sbInvokeOnThread1Async |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1, |
|
|
TH |
aThread |
|
) |
| |
|
inline |
From the supplied thread, invoke asynchronously the method specified by aMethod on the object specified by aObject. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of first method argument. |
aThread | Thread to run on. |
- Returns
- aFailureReturnValue on failure to invoke
Definition at line 1365 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 , class A2 , class TH >
RT sbInvokeOnThread2 |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1, |
|
|
A2 |
aArg2, |
|
|
TH |
aThread |
|
) |
| |
|
inline |
From the supplied thread, invoke the method specified by aMethod on the object specified by aObject. Return the method's return value. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of the first argument. |
aArg2 | Value of the second argument |
aThread | Thread to run on. |
- Returns
- aFailureReturnValue on failure.
Definition at line 1441 of file sbThreadUtils.h.
template<class T , class MT , class RT , class A1 , class A2 , class TH >
nsresult sbInvokeOnThread2Async |
( |
T & |
aObject, |
|
|
MT |
aMethod, |
|
|
RT |
aFailureReturnValue, |
|
|
A1 |
aArg1, |
|
|
A2 |
aArg2, |
|
|
TH |
aThread |
|
) |
| |
|
inline |
From the supplied thread, invoke asynchronously the method specified by aMethod on the object specified by aObject. Return the method's return value. On any error, return the value specified by aFailureReturnValue. Pass to the method the argument value specified by aArg1.
- Parameters
-
aObject | Object for which to invoke method. |
aMethod | Method to invoke. |
aFailureReturnValue | Value to return on failure. |
aArg1 | Value of the first argument. |
aArg2 | Value of the second argument |
aThread | Thread to run on. |
- Returns
- Value returned by invoked method or aFailureReturnValue on failure.
Definition at line 1505 of file sbThreadUtils.h.