LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIThreadPool.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 nsIThreadPoolListener : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADPOOLLISTENER_IID)
      29             : 
      30             :   /* void onThreadCreated (); */
      31             :   NS_IMETHOD OnThreadCreated(void) = 0;
      32             : 
      33             :   /* void onThreadShuttingDown (); */
      34             :   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_IMETHOD OnThreadCreated(void) override; \
      43             :   NS_IMETHOD OnThreadShuttingDown(void) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSITHREADPOOLLISTENER \
      48             :   nsresult OnThreadCreated(void); \
      49             :   nsresult OnThreadShuttingDown(void); 
      50             : 
      51             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52             : #define NS_FORWARD_NSITHREADPOOLLISTENER(_to) \
      53             :   NS_IMETHOD OnThreadCreated(void) override { return _to OnThreadCreated(); } \
      54             :   NS_IMETHOD OnThreadShuttingDown(void) override { return _to OnThreadShuttingDown(); } 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      57             : #define NS_FORWARD_SAFE_NSITHREADPOOLLISTENER(_to) \
      58             :   NS_IMETHOD OnThreadCreated(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnThreadCreated(); } \
      59             :   NS_IMETHOD OnThreadShuttingDown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnThreadShuttingDown(); } 
      60             : 
      61             : #if 0
      62             : /* Use the code below as a template for the implementation class for this interface. */
      63             : 
      64             : /* Header file */
      65             : class nsThreadPoolListener : public nsIThreadPoolListener
      66             : {
      67             : public:
      68             :   NS_DECL_ISUPPORTS
      69             :   NS_DECL_NSITHREADPOOLLISTENER
      70             : 
      71             :   nsThreadPoolListener();
      72             : 
      73             : private:
      74             :   ~nsThreadPoolListener();
      75             : 
      76             : protected:
      77             :   /* additional members */
      78             : };
      79             : 
      80             : /* Implementation file */
      81             : NS_IMPL_ISUPPORTS(nsThreadPoolListener, nsIThreadPoolListener)
      82             : 
      83             : nsThreadPoolListener::nsThreadPoolListener()
      84             : {
      85             :   /* member initializers and constructor code */
      86             : }
      87             : 
      88             : nsThreadPoolListener::~nsThreadPoolListener()
      89             : {
      90             :   /* destructor code */
      91             : }
      92             : 
      93             : /* void onThreadCreated (); */
      94             : NS_IMETHODIMP nsThreadPoolListener::OnThreadCreated()
      95             : {
      96             :     return NS_ERROR_NOT_IMPLEMENTED;
      97             : }
      98             : 
      99             : /* void onThreadShuttingDown (); */
     100             : NS_IMETHODIMP nsThreadPoolListener::OnThreadShuttingDown()
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* End of implementation class template. */
     106             : #endif
     107             : 
     108             : 
     109             : /* starting interface:    nsIThreadPool */
     110             : #define NS_ITHREADPOOL_IID_STR "76ce99c9-8e43-489a-9789-f27cc4424965"
     111             : 
     112             : #define NS_ITHREADPOOL_IID \
     113             :   {0x76ce99c9, 0x8e43, 0x489a, \
     114             :     { 0x97, 0x89, 0xf2, 0x7c, 0xc4, 0x42, 0x49, 0x65 }}
     115             : 
     116           6 : class NS_NO_VTABLE nsIThreadPool : public nsIEventTarget {
     117             :  public:
     118             : 
     119             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADPOOL_IID)
     120             : 
     121             :   /* void shutdown (); */
     122             :   NS_IMETHOD Shutdown(void) = 0;
     123             : 
     124             :   /* attribute unsigned long threadLimit; */
     125             :   NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) = 0;
     126             :   NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) = 0;
     127             : 
     128             :   /* attribute unsigned long idleThreadLimit; */
     129             :   NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) = 0;
     130             :   NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) = 0;
     131             : 
     132             :   /* attribute unsigned long idleThreadTimeout; */
     133             :   NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) = 0;
     134             :   NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) = 0;
     135             : 
     136             :   /* attribute unsigned long threadStackSize; */
     137             :   NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) = 0;
     138             :   NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) = 0;
     139             : 
     140             :   /* attribute nsIThreadPoolListener listener; */
     141             :   NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) = 0;
     142             :   NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) = 0;
     143             : 
     144             :   /* void setName (in ACString aName); */
     145             :   NS_IMETHOD SetName(const nsACString & aName) = 0;
     146             : 
     147             : };
     148             : 
     149             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadPool, NS_ITHREADPOOL_IID)
     150             : 
     151             : /* Use this macro when declaring classes that implement this interface. */
     152             : #define NS_DECL_NSITHREADPOOL \
     153             :   NS_IMETHOD Shutdown(void) override; \
     154             :   NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) override; \
     155             :   NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) override; \
     156             :   NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) override; \
     157             :   NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) override; \
     158             :   NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) override; \
     159             :   NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) override; \
     160             :   NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) override; \
     161             :   NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) override; \
     162             :   NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) override; \
     163             :   NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) override; \
     164             :   NS_IMETHOD SetName(const nsACString & aName) override; 
     165             : 
     166             : /* Use this macro when declaring the members of this interface when the
     167             :    class doesn't implement the interface. This is useful for forwarding. */
     168             : #define NS_DECL_NON_VIRTUAL_NSITHREADPOOL \
     169             :   nsresult Shutdown(void); \
     170             :   nsresult GetThreadLimit(uint32_t *aThreadLimit); \
     171             :   nsresult SetThreadLimit(uint32_t aThreadLimit); \
     172             :   nsresult GetIdleThreadLimit(uint32_t *aIdleThreadLimit); \
     173             :   nsresult SetIdleThreadLimit(uint32_t aIdleThreadLimit); \
     174             :   nsresult GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout); \
     175             :   nsresult SetIdleThreadTimeout(uint32_t aIdleThreadTimeout); \
     176             :   nsresult GetThreadStackSize(uint32_t *aThreadStackSize); \
     177             :   nsresult SetThreadStackSize(uint32_t aThreadStackSize); \
     178             :   nsresult GetListener(nsIThreadPoolListener * *aListener); \
     179             :   nsresult SetListener(nsIThreadPoolListener *aListener); \
     180             :   nsresult SetName(const nsACString & aName); 
     181             : 
     182             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     183             : #define NS_FORWARD_NSITHREADPOOL(_to) \
     184             :   NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
     185             :   NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) override { return _to GetThreadLimit(aThreadLimit); } \
     186             :   NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) override { return _to SetThreadLimit(aThreadLimit); } \
     187             :   NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) override { return _to GetIdleThreadLimit(aIdleThreadLimit); } \
     188             :   NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) override { return _to SetIdleThreadLimit(aIdleThreadLimit); } \
     189             :   NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) override { return _to GetIdleThreadTimeout(aIdleThreadTimeout); } \
     190             :   NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) override { return _to SetIdleThreadTimeout(aIdleThreadTimeout); } \
     191             :   NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) override { return _to GetThreadStackSize(aThreadStackSize); } \
     192             :   NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) override { return _to SetThreadStackSize(aThreadStackSize); } \
     193             :   NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) override { return _to GetListener(aListener); } \
     194             :   NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) override { return _to SetListener(aListener); } \
     195             :   NS_IMETHOD SetName(const nsACString & aName) override { return _to SetName(aName); } 
     196             : 
     197             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     198             : #define NS_FORWARD_SAFE_NSITHREADPOOL(_to) \
     199             :   NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
     200             :   NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadLimit(aThreadLimit); } \
     201             :   NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadLimit(aThreadLimit); } \
     202             :   NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleThreadLimit(aIdleThreadLimit); } \
     203             :   NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdleThreadLimit(aIdleThreadLimit); } \
     204             :   NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleThreadTimeout(aIdleThreadTimeout); } \
     205             :   NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdleThreadTimeout(aIdleThreadTimeout); } \
     206             :   NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadStackSize(aThreadStackSize); } \
     207             :   NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadStackSize(aThreadStackSize); } \
     208             :   NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
     209             :   NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } \
     210             :   NS_IMETHOD SetName(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } 
     211             : 
     212             : #if 0
     213             : /* Use the code below as a template for the implementation class for this interface. */
     214             : 
     215             : /* Header file */
     216             : class nsThreadPool : public nsIThreadPool
     217             : {
     218             : public:
     219             :   NS_DECL_ISUPPORTS
     220             :   NS_DECL_NSITHREADPOOL
     221             : 
     222             :   nsThreadPool();
     223             : 
     224             : private:
     225             :   ~nsThreadPool();
     226             : 
     227             : protected:
     228             :   /* additional members */
     229             : };
     230             : 
     231             : /* Implementation file */
     232             : NS_IMPL_ISUPPORTS(nsThreadPool, nsIThreadPool)
     233             : 
     234             : nsThreadPool::nsThreadPool()
     235             : {
     236             :   /* member initializers and constructor code */
     237             : }
     238             : 
     239             : nsThreadPool::~nsThreadPool()
     240             : {
     241             :   /* destructor code */
     242             : }
     243             : 
     244             : /* void shutdown (); */
     245             : NS_IMETHODIMP nsThreadPool::Shutdown()
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* attribute unsigned long threadLimit; */
     251             : NS_IMETHODIMP nsThreadPool::GetThreadLimit(uint32_t *aThreadLimit)
     252             : {
     253             :     return NS_ERROR_NOT_IMPLEMENTED;
     254             : }
     255             : NS_IMETHODIMP nsThreadPool::SetThreadLimit(uint32_t aThreadLimit)
     256             : {
     257             :     return NS_ERROR_NOT_IMPLEMENTED;
     258             : }
     259             : 
     260             : /* attribute unsigned long idleThreadLimit; */
     261             : NS_IMETHODIMP nsThreadPool::GetIdleThreadLimit(uint32_t *aIdleThreadLimit)
     262             : {
     263             :     return NS_ERROR_NOT_IMPLEMENTED;
     264             : }
     265             : NS_IMETHODIMP nsThreadPool::SetIdleThreadLimit(uint32_t aIdleThreadLimit)
     266             : {
     267             :     return NS_ERROR_NOT_IMPLEMENTED;
     268             : }
     269             : 
     270             : /* attribute unsigned long idleThreadTimeout; */
     271             : NS_IMETHODIMP nsThreadPool::GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout)
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : NS_IMETHODIMP nsThreadPool::SetIdleThreadTimeout(uint32_t aIdleThreadTimeout)
     276             : {
     277             :     return NS_ERROR_NOT_IMPLEMENTED;
     278             : }
     279             : 
     280             : /* attribute unsigned long threadStackSize; */
     281             : NS_IMETHODIMP nsThreadPool::GetThreadStackSize(uint32_t *aThreadStackSize)
     282             : {
     283             :     return NS_ERROR_NOT_IMPLEMENTED;
     284             : }
     285             : NS_IMETHODIMP nsThreadPool::SetThreadStackSize(uint32_t aThreadStackSize)
     286             : {
     287             :     return NS_ERROR_NOT_IMPLEMENTED;
     288             : }
     289             : 
     290             : /* attribute nsIThreadPoolListener listener; */
     291             : NS_IMETHODIMP nsThreadPool::GetListener(nsIThreadPoolListener * *aListener)
     292             : {
     293             :     return NS_ERROR_NOT_IMPLEMENTED;
     294             : }
     295             : NS_IMETHODIMP nsThreadPool::SetListener(nsIThreadPoolListener *aListener)
     296             : {
     297             :     return NS_ERROR_NOT_IMPLEMENTED;
     298             : }
     299             : 
     300             : /* void setName (in ACString aName); */
     301             : NS_IMETHODIMP nsThreadPool::SetName(const nsACString & aName)
     302             : {
     303             :     return NS_ERROR_NOT_IMPLEMENTED;
     304             : }
     305             : 
     306             : /* End of implementation class template. */
     307             : #endif
     308             : 
     309             : 
     310             : #endif /* __gen_nsIThreadPool_h__ */

Generated by: LCOV version 1.13