LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIThreadManager.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/nsIThreadManager.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIThreadManager_h__
       6                 : #define __gen_nsIThreadManager_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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                 : class nsIThread; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    nsIThreadManager */
      21                 : #define NS_ITHREADMANAGER_IID_STR "2bbbc38c-cf96-4099-ba6b-f6a44d8b014c"
      22                 : 
      23                 : #define NS_ITHREADMANAGER_IID \
      24                 :   {0x2bbbc38c, 0xcf96, 0x4099, \
      25                 :     { 0xba, 0x6b, 0xf6, 0xa4, 0x4d, 0x8b, 0x01, 0x4c }}
      26                 : 
      27            1464 : class NS_NO_VTABLE NS_SCRIPTABLE nsIThreadManager : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADMANAGER_IID)
      31                 : 
      32                 :   enum {
      33                 :     DEFAULT_STACK_SIZE = 0U
      34                 :   };
      35                 : 
      36                 :   /* nsIThread newThread (in unsigned long creationFlags, [optional] in unsigned long stackSize); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD NewThread(PRUint32 creationFlags, PRUint32 stackSize, nsIThread * *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* [noscript] nsIThread getThreadFromPRThread (in PRThread prthread); */
      40                 :   NS_IMETHOD GetThreadFromPRThread(PRThread *prthread, nsIThread * *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* readonly attribute nsIThread mainThread; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetMainThread(nsIThread * *aMainThread) = 0;
      44                 : 
      45                 :   /* readonly attribute nsIThread currentThread; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentThread(nsIThread * *aCurrentThread) = 0;
      47                 : 
      48                 :   /* readonly attribute boolean isMainThread; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetIsMainThread(bool *aIsMainThread) = 0;
      50                 : 
      51                 :   /* readonly attribute boolean isCycleCollectorThread; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetIsCycleCollectorThread(bool *aIsCycleCollectorThread) = 0;
      53                 : 
      54                 : };
      55                 : 
      56                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadManager, NS_ITHREADMANAGER_IID)
      57                 : 
      58                 : /* Use this macro when declaring classes that implement this interface. */
      59                 : #define NS_DECL_NSITHREADMANAGER \
      60                 :   NS_SCRIPTABLE NS_IMETHOD NewThread(PRUint32 creationFlags, PRUint32 stackSize, nsIThread * *_retval NS_OUTPARAM); \
      61                 :   NS_IMETHOD GetThreadFromPRThread(PRThread *prthread, nsIThread * *_retval NS_OUTPARAM); \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetMainThread(nsIThread * *aMainThread); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentThread(nsIThread * *aCurrentThread); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetIsMainThread(bool *aIsMainThread); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetIsCycleCollectorThread(bool *aIsCycleCollectorThread); 
      66                 : 
      67                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      68                 : #define NS_FORWARD_NSITHREADMANAGER(_to) \
      69                 :   NS_SCRIPTABLE NS_IMETHOD NewThread(PRUint32 creationFlags, PRUint32 stackSize, nsIThread * *_retval NS_OUTPARAM) { return _to NewThread(creationFlags, stackSize, _retval); } \
      70                 :   NS_IMETHOD GetThreadFromPRThread(PRThread *prthread, nsIThread * *_retval NS_OUTPARAM) { return _to GetThreadFromPRThread(prthread, _retval); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetMainThread(nsIThread * *aMainThread) { return _to GetMainThread(aMainThread); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentThread(nsIThread * *aCurrentThread) { return _to GetCurrentThread(aCurrentThread); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetIsMainThread(bool *aIsMainThread) { return _to GetIsMainThread(aIsMainThread); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetIsCycleCollectorThread(bool *aIsCycleCollectorThread) { return _to GetIsCycleCollectorThread(aIsCycleCollectorThread); } 
      75                 : 
      76                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      77                 : #define NS_FORWARD_SAFE_NSITHREADMANAGER(_to) \
      78                 :   NS_SCRIPTABLE NS_IMETHOD NewThread(PRUint32 creationFlags, PRUint32 stackSize, nsIThread * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewThread(creationFlags, stackSize, _retval); } \
      79                 :   NS_IMETHOD GetThreadFromPRThread(PRThread *prthread, nsIThread * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadFromPRThread(prthread, _retval); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetMainThread(nsIThread * *aMainThread) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMainThread(aMainThread); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentThread(nsIThread * *aCurrentThread) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentThread(aCurrentThread); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetIsMainThread(bool *aIsMainThread) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMainThread(aIsMainThread); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetIsCycleCollectorThread(bool *aIsCycleCollectorThread) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCycleCollectorThread(aIsCycleCollectorThread); } 
      84                 : 
      85                 : #if 0
      86                 : /* Use the code below as a template for the implementation class for this interface. */
      87                 : 
      88                 : /* Header file */
      89                 : class nsThreadManager : public nsIThreadManager
      90                 : {
      91                 : public:
      92                 :   NS_DECL_ISUPPORTS
      93                 :   NS_DECL_NSITHREADMANAGER
      94                 : 
      95                 :   nsThreadManager();
      96                 : 
      97                 : private:
      98                 :   ~nsThreadManager();
      99                 : 
     100                 : protected:
     101                 :   /* additional members */
     102                 : };
     103                 : 
     104                 : /* Implementation file */
     105                 : NS_IMPL_ISUPPORTS1(nsThreadManager, nsIThreadManager)
     106                 : 
     107                 : nsThreadManager::nsThreadManager()
     108                 : {
     109                 :   /* member initializers and constructor code */
     110                 : }
     111                 : 
     112                 : nsThreadManager::~nsThreadManager()
     113                 : {
     114                 :   /* destructor code */
     115                 : }
     116                 : 
     117                 : /* nsIThread newThread (in unsigned long creationFlags, [optional] in unsigned long stackSize); */
     118                 : NS_IMETHODIMP nsThreadManager::NewThread(PRUint32 creationFlags, PRUint32 stackSize, nsIThread * *_retval NS_OUTPARAM)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* [noscript] nsIThread getThreadFromPRThread (in PRThread prthread); */
     124                 : NS_IMETHODIMP nsThreadManager::GetThreadFromPRThread(PRThread *prthread, nsIThread * *_retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* readonly attribute nsIThread mainThread; */
     130                 : NS_IMETHODIMP nsThreadManager::GetMainThread(nsIThread * *aMainThread)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* readonly attribute nsIThread currentThread; */
     136                 : NS_IMETHODIMP nsThreadManager::GetCurrentThread(nsIThread * *aCurrentThread)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* readonly attribute boolean isMainThread; */
     142                 : NS_IMETHODIMP nsThreadManager::GetIsMainThread(bool *aIsMainThread)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* readonly attribute boolean isCycleCollectorThread; */
     148                 : NS_IMETHODIMP nsThreadManager::GetIsCycleCollectorThread(bool *aIsCycleCollectorThread)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* End of implementation class template. */
     154                 : #endif
     155                 : 
     156                 : 
     157                 : #endif /* __gen_nsIThreadManager_h__ */

Generated by: LCOV version 1.7