Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
XPCAutoLock Class Reference

#include <xpcprivate.h>

Collaboration diagram for XPCAutoLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XPCAutoLock (XPCLock *lock)
 ~XPCAutoLock ()

Static Public Member Functions

static XPCLockNewLock (const char *name)
static void DestroyLock (XPCLock *lock)

Private Member Functions

 XPCAutoLock (void)
 XPCAutoLock (XPCAutoLock &)
XPCAutoLockoperator= (XPCAutoLock &)

Static Private Member Functions

static voidoperator new (size_t) CPP_THROW_NEW
static void operator delete (void *)

Private Attributes

XPCLockmLock

Detailed Description

Definition at line 287 of file xpcprivate.h.


Constructor & Destructor Documentation

XPCAutoLock::XPCAutoLock ( XPCLock lock) [inline]

Definition at line 295 of file xpcprivate.h.

        : nsAutoLockBase(lock ? (void*) lock : (void*) this, eAutoMonitor),
#else
        : nsAutoLockBase(lock, eAutoMonitor),
#endif
          mLock(lock)
    {
        if(mLock)
            PR_EnterMonitor(mLock);
    }

Here is the call graph for this function:

Definition at line 307 of file xpcprivate.h.

    {
        if(mLock)
        {
#ifdef DEBUG
            PRStatus status =
#endif
                PR_ExitMonitor(mLock);
            NS_ASSERTION(status == PR_SUCCESS, "PR_ExitMonitor failed");
        }
    }

Here is the call graph for this function:

XPCAutoLock::XPCAutoLock ( void  ) [inline, private]

Definition at line 324 of file xpcprivate.h.

{}
XPCAutoLock::XPCAutoLock ( XPCAutoLock ) [inline, private]

Definition at line 325 of file xpcprivate.h.

{}

Member Function Documentation

static void XPCAutoLock::DestroyLock ( XPCLock lock) [inline, static]

Definition at line 292 of file xpcprivate.h.

static XPCLock* XPCAutoLock::NewLock ( const char *  name) [inline, static]

Definition at line 290 of file xpcprivate.h.

static void XPCAutoLock::operator delete ( void ) [inline, static, private]

Definition at line 335 of file xpcprivate.h.

{}
static void* XPCAutoLock::operator new ( size_t  ) [inline, static, private]

Definition at line 332 of file xpcprivate.h.

                                                      {
        return nsnull;
    }
XPCAutoLock& XPCAutoLock::operator= ( XPCAutoLock ) [inline, private]

Definition at line 326 of file xpcprivate.h.

                                            {
        return *this;
    }

Member Data Documentation

Definition at line 320 of file xpcprivate.h.


The documentation for this class was generated from the following file: