Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

MemoryFlusher Class Reference

Inheritance diagram for MemoryFlusher:


List of all members.

Detailed Description

A runnable that is used to periodically check the status of the system, determine if too much memory is in use, and if so, trigger a "memory flush".

Definition at line 70 of file nsMemoryImpl.cpp.

Public Member Functions

void run ()
Stop ()
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static nsresult Create (MemoryFlusher **aResult, nsMemoryImpl *aMemoryImpl)

Protected Types

enum  { kInitialTimeout = 60 }

Protected Member Functions

 MemoryFlusher (nsMemoryImpl *aMemoryImpl)

Protected Attributes

PRCondVar * mCVar
PRLock * mLock
nsMemoryImpl * mMemoryImpl
PRBool mRunning
PRIntervalTime mTimeout

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

Generated by  Doxygen 1.6.0   Back to index