Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIOThreadPool.cpp File Reference
#include "nsIEventTarget.h"
#include "nsIServiceManager.h"
#include "nsIObserverService.h"
#include "nsIObserver.h"
#include "nsAutoLock.h"
#include "nsCOMPtr.h"
#include "prclist.h"
#include "prlog.h"

Go to the source code of this file.

Classes

class  nsIOThreadPool

Defines

#define LOG(args)   PR_LOG(gIOThreadPoolLog, PR_LOG_DEBUG, args)
#define MAX_THREADS   4
#define IDLE_TIMEOUT   PR_SecondsToInterval(60)
#define PLEVENT_FROM_LINK(_link)   ((PLEvent*) ((char*) (_link) - offsetof(PLEvent, link)))

Functions

NS_METHOD net_NewIOThreadPool (nsISupports *outer, REFNSIID iid, void **result)
 XPCOM constructor for nsIOThreadPool.

Define Documentation

#define IDLE_TIMEOUT   PR_SecondsToInterval(60)

Definition at line 59 of file nsIOThreadPool.cpp.

#define LOG (   args)    PR_LOG(gIOThreadPoolLog, PR_LOG_DEBUG, args)

Definition at line 52 of file nsIOThreadPool.cpp.

Definition at line 55 of file nsIOThreadPool.cpp.

#define PLEVENT_FROM_LINK (   _link)    ((PLEvent*) ((char*) (_link) - offsetof(PLEvent, link)))

Definition at line 61 of file nsIOThreadPool.cpp.


Function Documentation

NS_METHOD net_NewIOThreadPool ( nsISupports *  outer,
REFNSIID  iid,
void **  result 
)

XPCOM constructor for nsIOThreadPool.

Definition at line 299 of file nsIOThreadPool.cpp.

{
    nsIOThreadPool *pool = new nsIOThreadPool();
    if (!pool)
        return NS_ERROR_OUT_OF_MEMORY;
    NS_ADDREF(pool);
    nsresult rv = pool->Init();
    if (NS_SUCCEEDED(rv))
        rv = pool->QueryInterface(iid, result);
    NS_RELEASE(pool);
    return rv;
}

Here is the call graph for this function: