Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
ThreadManagerTests.h File Reference
#include "ojiapitests.h"
#include <nsIThreadManager.h>
#include <nsIJVMManager.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BaseDummyThread

Functions

static NS_DEFINE_IID (kIThreadManagerIID, NS_ITHREADMANAGER_IID)
static NS_DEFINE_IID (kJVMManagerCID, NS_JVMMANAGER_CID)
nsresult GetThreadManager (nsIThreadManager **tm)

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:

static NS_DEFINE_IID ( kIThreadManagerIID  ,
NS_ITHREADMANAGER_IID   
) [static]
static NS_DEFINE_IID ( kJVMManagerCID  ,
NS_JVMMANAGER_CID   
) [static]