Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
nsNSSShutDownObject Class Reference

#include <nsNSSShutDown.h>

Inheritance diagram for nsNSSShutDownObject:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CalledFromType { calledFromList, calledFromObject }

Public Member Functions

 nsNSSShutDownObject ()
virtual ~nsNSSShutDownObject ()
void shutdown (CalledFromType calledFrom)
PRBool isAlreadyShutDown ()

Protected Member Functions

virtual void virtualDestroyNSSReference ()=0

Private Attributes

volatile PRBool mAlreadyShutDown

Detailed Description

Definition at line 266 of file nsNSSShutDown.h.


Member Enumeration Documentation

Enumerator:
calledFromList 
calledFromObject 

Definition at line 270 of file nsNSSShutDown.h.


Constructor & Destructor Documentation

Definition at line 272 of file nsNSSShutDown.h.

Here is the call graph for this function:

virtual nsNSSShutDownObject::~nsNSSShutDownObject ( ) [inline, virtual]

Definition at line 278 of file nsNSSShutDown.h.

  {
    // the derived class must call 
    //   shutdown(calledFromObject);
    // in its destructor
  }

Member Function Documentation

Definition at line 298 of file nsNSSShutDown.h.

{ return mAlreadyShutDown; }

Here is the caller graph for this function:

Definition at line 285 of file nsNSSShutDown.h.

  {
    if (!mAlreadyShutDown) {
      if (calledFromObject == calledFrom) {
        nsNSSShutDownList::forget(this);
      }
      if (calledFromList == calledFrom) {
        virtualDestroyNSSReference();
      }
      mAlreadyShutDown = PR_TRUE;
    }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void nsNSSShutDownObject::virtualDestroyNSSReference ( ) [protected, pure virtual]

Member Data Documentation

Definition at line 303 of file nsNSSShutDown.h.


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