sbThreadUtils.cpp File Reference

Songbird Thread Utilities Services Source. More...

#include "sbThreadUtils.h"
#include <nsIThreadManager.h>
#include <nsServiceManagerUtils.h>
Include dependency graph for sbThreadUtils.cpp:

Go to the source code of this file.

Functions

PRBool SB_IsMainThread (nsIThreadManager *aThreadManager)
 

Detailed Description

Songbird Thread Utilities Services Source.

Definition in file sbThreadUtils.cpp.

Function Documentation

PRBool SB_IsMainThread ( nsIThreadManager *  aThreadManager)

Check if the current thread is the main thread and return true if so. Use the thread manager object specified by aThreadManager if provided. This function can be used during XPCOM shutdown if aThreadManager is provided.

Parameters
aThreadManagerOptional thread manager. Defaults to null.
Returns
PR_TRUE Current thread is main thread.

Definition at line 71 of file sbThreadUtils.cpp.

Here is the caller graph for this function: