272
edits
m (→Functions) |
|||
| Line 227: | Line 227: | ||
*/ | */ | ||
PRBool NS_IsMainThread(); | PRBool NS_IsMainThread(); | ||
| |||
/** | |||
* Dispatch the given event to the current thread. | |||
* | |||
* @param event | |||
* The event to dispatch. | |||
*/ | |||
NS_METHOD NS_DispatchToCurrentThread(nsIRunnable *event); | |||
| |||
/** | |||
* Dispatch the given event to the main thread. | |||
* | |||
* @param event | |||
* The event to dispatch. | |||
* @param dispatchFlags | |||
* The flags to pass to the main thread's dispatch method. | |||
*/ | |||
NS_METHOD NS_DispatchToMainThread(nsIRunnable *event, | |||
PRUint32 dispatchFlags = NS_DISPATCH_NORMAL); | |||
=== nsCOMPtr helpers === | === nsCOMPtr helpers === | ||
edits