Back to index

lightning-sunbird  0.9+nobinonly
get_tm.cpp File Reference
#include <ThreadManagerTests.h>
#include <nsIServiceManager.h>

Go to the source code of this file.


nsresult GetThreadManager (nsIThreadManager **thrdMngr)

Function Documentation

Definition at line 41 of file get_tm.cpp.

       *thrdMngr = nsnull; 
       nsresult rv;
       rv = CallGetService(kJVMManagerCID, thrdMngr);
       if (rv != NS_OK || !thrdMngr) {
              fprintf(stderr, "ERROR: Can't get Thread manager !\n");
              return NS_ERROR_FAILURE;
       return NS_OK;

Here is the call graph for this function: