32 #ifndef __SB_THREADPOOLSERVICE_H__
33 #define __SB_THREADPOOLSERVICE_H__
35 #include <nsIObserver.h>
36 #include <nsIRunnable.h>
37 #include <nsIThreadPool.h>
40 #define SB_THREADPOOLSERVICE_CONTRACTID \
41 "@songbirdnest.com/Songbird/ThreadPoolService;1"
42 #define SB_THREADPOOLSERVICE_CLASSNAME \
43 "Songbird ThreadPool Service"
44 #define SB_THREADPOOLSERVICE_CID \
49 { 0xbb, 0x63, 0xc3, 0xe2, 0x6e, 0x85, 0xd3, 0xc6 } \
61 NS_FORWARD_SAFE_NSITHREADPOOL(mThreadPool)
62 NS_FORWARD_SAFE_NSIEVENTTARGET(mThreadPool)
67 nsCOMPtr<nsIThreadPool> mThreadPool;
70 #endif // __SB_THREADPOOLSERVICE_H__
NS_DECL_ISUPPORTS NS_DECL_NSIOBSERVER nsresult Init()
virtual ~sbThreadPoolService()