LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIThreadPool.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/threads/nsIThreadPool.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIThreadPool_h__
       6                 : #define __gen_nsIThreadPool_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIEventTarget_h__
      10                 : #include "nsIEventTarget.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : 
      18                 : /* starting interface:    nsIThreadPoolListener */
      19                 : #define NS_ITHREADPOOLLISTENER_IID_STR "ef194cab-3f86-4b61-b132-e5e96a79e5d1"
      20                 : 
      21                 : #define NS_ITHREADPOOLLISTENER_IID \
      22                 :   {0xef194cab, 0x3f86, 0x4b61, \
      23                 :     { 0xb1, 0x32, 0xe5, 0xe9, 0x6a, 0x79, 0xe5, 0xd1 }}
      24                 : 
      25                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIThreadPoolListener : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADPOOLLISTENER_IID)
      29                 : 
      30                 :   /* void onThreadCreated (); */
      31                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadCreated(void) = 0;
      32                 : 
      33                 :   /* void onThreadShuttingDown (); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadShuttingDown(void) = 0;
      35                 : 
      36                 : };
      37                 : 
      38                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadPoolListener, NS_ITHREADPOOLLISTENER_IID)
      39                 : 
      40                 : /* Use this macro when declaring classes that implement this interface. */
      41                 : #define NS_DECL_NSITHREADPOOLLISTENER \
      42                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadCreated(void); \
      43                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadShuttingDown(void); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSITHREADPOOLLISTENER(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadCreated(void) { return _to OnThreadCreated(); } \
      48                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadShuttingDown(void) { return _to OnThreadShuttingDown(); } 
      49                 : 
      50                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      51                 : #define NS_FORWARD_SAFE_NSITHREADPOOLLISTENER(_to) \
      52                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadCreated(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnThreadCreated(); } \
      53                 :   NS_SCRIPTABLE NS_IMETHOD OnThreadShuttingDown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnThreadShuttingDown(); } 
      54                 : 
      55                 : #if 0
      56                 : /* Use the code below as a template for the implementation class for this interface. */
      57                 : 
      58                 : /* Header file */
      59                 : class nsThreadPoolListener : public nsIThreadPoolListener
      60                 : {
      61                 : public:
      62                 :   NS_DECL_ISUPPORTS
      63                 :   NS_DECL_NSITHREADPOOLLISTENER
      64                 : 
      65                 :   nsThreadPoolListener();
      66                 : 
      67                 : private:
      68                 :   ~nsThreadPoolListener();
      69                 : 
      70                 : protected:
      71                 :   /* additional members */
      72                 : };
      73                 : 
      74                 : /* Implementation file */
      75                 : NS_IMPL_ISUPPORTS1(nsThreadPoolListener, nsIThreadPoolListener)
      76                 : 
      77                 : nsThreadPoolListener::nsThreadPoolListener()
      78                 : {
      79                 :   /* member initializers and constructor code */
      80                 : }
      81                 : 
      82                 : nsThreadPoolListener::~nsThreadPoolListener()
      83                 : {
      84                 :   /* destructor code */
      85                 : }
      86                 : 
      87                 : /* void onThreadCreated (); */
      88                 : NS_IMETHODIMP nsThreadPoolListener::OnThreadCreated()
      89                 : {
      90                 :     return NS_ERROR_NOT_IMPLEMENTED;
      91                 : }
      92                 : 
      93                 : /* void onThreadShuttingDown (); */
      94                 : NS_IMETHODIMP nsThreadPoolListener::OnThreadShuttingDown()
      95                 : {
      96                 :     return NS_ERROR_NOT_IMPLEMENTED;
      97                 : }
      98                 : 
      99                 : /* End of implementation class template. */
     100                 : #endif
     101                 : 
     102                 : 
     103                 : /* starting interface:    nsIThreadPool */
     104                 : #define NS_ITHREADPOOL_IID_STR "d628159b-1a03-4985-aa77-43122eb23bfc"
     105                 : 
     106                 : #define NS_ITHREADPOOL_IID \
     107                 :   {0xd628159b, 0x1a03, 0x4985, \
     108                 :     { 0xaa, 0x77, 0x43, 0x12, 0x2e, 0xb2, 0x3b, 0xfc }}
     109                 : 
     110            1560 : class NS_NO_VTABLE NS_SCRIPTABLE nsIThreadPool : public nsIEventTarget {
     111                 :  public: 
     112                 : 
     113                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADPOOL_IID)
     114                 : 
     115                 :   /* void shutdown (); */
     116                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void) = 0;
     117                 : 
     118                 :   /* attribute unsigned long threadLimit; */
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetThreadLimit(PRUint32 *aThreadLimit) = 0;
     120                 :   NS_SCRIPTABLE NS_IMETHOD SetThreadLimit(PRUint32 aThreadLimit) = 0;
     121                 : 
     122                 :   /* attribute unsigned long idleThreadLimit; */
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadLimit(PRUint32 *aIdleThreadLimit) = 0;
     124                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadLimit(PRUint32 aIdleThreadLimit) = 0;
     125                 : 
     126                 :   /* attribute unsigned long idleThreadTimeout; */
     127                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadTimeout(PRUint32 *aIdleThreadTimeout) = 0;
     128                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadTimeout(PRUint32 aIdleThreadTimeout) = 0;
     129                 : 
     130                 :   /* attribute nsIThreadPoolListener listener; */
     131                 :   NS_SCRIPTABLE NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) = 0;
     132                 :   NS_SCRIPTABLE NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) = 0;
     133                 : 
     134                 : };
     135                 : 
     136                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadPool, NS_ITHREADPOOL_IID)
     137                 : 
     138                 : /* Use this macro when declaring classes that implement this interface. */
     139                 : #define NS_DECL_NSITHREADPOOL \
     140                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void); \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetThreadLimit(PRUint32 *aThreadLimit); \
     142                 :   NS_SCRIPTABLE NS_IMETHOD SetThreadLimit(PRUint32 aThreadLimit); \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadLimit(PRUint32 *aIdleThreadLimit); \
     144                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadLimit(PRUint32 aIdleThreadLimit); \
     145                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadTimeout(PRUint32 *aIdleThreadTimeout); \
     146                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadTimeout(PRUint32 aIdleThreadTimeout); \
     147                 :   NS_SCRIPTABLE NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener); \
     148                 :   NS_SCRIPTABLE NS_IMETHOD SetListener(nsIThreadPoolListener *aListener); 
     149                 : 
     150                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     151                 : #define NS_FORWARD_NSITHREADPOOL(_to) \
     152                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return _to Shutdown(); } \
     153                 :   NS_SCRIPTABLE NS_IMETHOD GetThreadLimit(PRUint32 *aThreadLimit) { return _to GetThreadLimit(aThreadLimit); } \
     154                 :   NS_SCRIPTABLE NS_IMETHOD SetThreadLimit(PRUint32 aThreadLimit) { return _to SetThreadLimit(aThreadLimit); } \
     155                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadLimit(PRUint32 *aIdleThreadLimit) { return _to GetIdleThreadLimit(aIdleThreadLimit); } \
     156                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadLimit(PRUint32 aIdleThreadLimit) { return _to SetIdleThreadLimit(aIdleThreadLimit); } \
     157                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadTimeout(PRUint32 *aIdleThreadTimeout) { return _to GetIdleThreadTimeout(aIdleThreadTimeout); } \
     158                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadTimeout(PRUint32 aIdleThreadTimeout) { return _to SetIdleThreadTimeout(aIdleThreadTimeout); } \
     159                 :   NS_SCRIPTABLE NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) { return _to GetListener(aListener); } \
     160                 :   NS_SCRIPTABLE NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) { return _to SetListener(aListener); } 
     161                 : 
     162                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     163                 : #define NS_FORWARD_SAFE_NSITHREADPOOL(_to) \
     164                 :   NS_SCRIPTABLE NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
     165                 :   NS_SCRIPTABLE NS_IMETHOD GetThreadLimit(PRUint32 *aThreadLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadLimit(aThreadLimit); } \
     166                 :   NS_SCRIPTABLE NS_IMETHOD SetThreadLimit(PRUint32 aThreadLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadLimit(aThreadLimit); } \
     167                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadLimit(PRUint32 *aIdleThreadLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleThreadLimit(aIdleThreadLimit); } \
     168                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadLimit(PRUint32 aIdleThreadLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdleThreadLimit(aIdleThreadLimit); } \
     169                 :   NS_SCRIPTABLE NS_IMETHOD GetIdleThreadTimeout(PRUint32 *aIdleThreadTimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleThreadTimeout(aIdleThreadTimeout); } \
     170                 :   NS_SCRIPTABLE NS_IMETHOD SetIdleThreadTimeout(PRUint32 aIdleThreadTimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdleThreadTimeout(aIdleThreadTimeout); } \
     171                 :   NS_SCRIPTABLE NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
     172                 :   NS_SCRIPTABLE NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } 
     173                 : 
     174                 : #if 0
     175                 : /* Use the code below as a template for the implementation class for this interface. */
     176                 : 
     177                 : /* Header file */
     178                 : class nsThreadPool : public nsIThreadPool
     179                 : {
     180                 : public:
     181                 :   NS_DECL_ISUPPORTS
     182                 :   NS_DECL_NSITHREADPOOL
     183                 : 
     184                 :   nsThreadPool();
     185                 : 
     186                 : private:
     187                 :   ~nsThreadPool();
     188                 : 
     189                 : protected:
     190                 :   /* additional members */
     191                 : };
     192                 : 
     193                 : /* Implementation file */
     194                 : NS_IMPL_ISUPPORTS1(nsThreadPool, nsIThreadPool)
     195                 : 
     196                 : nsThreadPool::nsThreadPool()
     197                 : {
     198                 :   /* member initializers and constructor code */
     199                 : }
     200                 : 
     201                 : nsThreadPool::~nsThreadPool()
     202                 : {
     203                 :   /* destructor code */
     204                 : }
     205                 : 
     206                 : /* void shutdown (); */
     207                 : NS_IMETHODIMP nsThreadPool::Shutdown()
     208                 : {
     209                 :     return NS_ERROR_NOT_IMPLEMENTED;
     210                 : }
     211                 : 
     212                 : /* attribute unsigned long threadLimit; */
     213                 : NS_IMETHODIMP nsThreadPool::GetThreadLimit(PRUint32 *aThreadLimit)
     214                 : {
     215                 :     return NS_ERROR_NOT_IMPLEMENTED;
     216                 : }
     217                 : NS_IMETHODIMP nsThreadPool::SetThreadLimit(PRUint32 aThreadLimit)
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* attribute unsigned long idleThreadLimit; */
     223                 : NS_IMETHODIMP nsThreadPool::GetIdleThreadLimit(PRUint32 *aIdleThreadLimit)
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : NS_IMETHODIMP nsThreadPool::SetIdleThreadLimit(PRUint32 aIdleThreadLimit)
     228                 : {
     229                 :     return NS_ERROR_NOT_IMPLEMENTED;
     230                 : }
     231                 : 
     232                 : /* attribute unsigned long idleThreadTimeout; */
     233                 : NS_IMETHODIMP nsThreadPool::GetIdleThreadTimeout(PRUint32 *aIdleThreadTimeout)
     234                 : {
     235                 :     return NS_ERROR_NOT_IMPLEMENTED;
     236                 : }
     237                 : NS_IMETHODIMP nsThreadPool::SetIdleThreadTimeout(PRUint32 aIdleThreadTimeout)
     238                 : {
     239                 :     return NS_ERROR_NOT_IMPLEMENTED;
     240                 : }
     241                 : 
     242                 : /* attribute nsIThreadPoolListener listener; */
     243                 : NS_IMETHODIMP nsThreadPool::GetListener(nsIThreadPoolListener * *aListener)
     244                 : {
     245                 :     return NS_ERROR_NOT_IMPLEMENTED;
     246                 : }
     247                 : NS_IMETHODIMP nsThreadPool::SetListener(nsIThreadPoolListener *aListener)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* End of implementation class template. */
     253                 : #endif
     254                 : 
     255                 : 
     256                 : #endif /* __gen_nsIThreadPool_h__ */

Generated by: LCOV version 1.7