Runtime Class Reference

Runtime class definition. More...

#include <runtime.h>

Inheritance diagram for Runtime:
Singleton< Runtime > zmm::Object

Public Member Functions

 Runtime ()
virtual ~Runtime ()
JSRuntime * getRT ()
 Returns the runtime for script execution.
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static zmm::Ref< RuntimegetInstance ()
static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Member Functions

virtual void init ()
virtual void shutdown ()
virtual void registerSingleton ()

Protected Attributes

JSRuntime * rt
mt_atomic_t _ref_count

Static Protected Attributes

static zmm::Ref< Mutexmutex
static zmm::Ref< Runtimeinstance
static bool singletonActive

Detailed Description

Runtime class definition.

Definition at line 44 of file runtime.h.


Constructor & Destructor Documentation

Runtime::Runtime (  ) 
virtual Runtime::~Runtime (  )  [virtual]

Member Function Documentation

static zmm::Ref<Runtime > Singleton< Runtime >::getInstance (  )  [inline, static, inherited]

Definition at line 62 of file singleton.h.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

JSRuntime* Runtime::getRT (  )  [inline]

Returns the runtime for script execution.

Definition at line 54 of file runtime.h.

References rt.

virtual void Singleton< Runtime >::init (  )  [inline, protected, virtual, inherited]

Definition at line 87 of file singleton.h.

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

virtual void Singleton< Runtime >::registerSingleton (  )  [inline, protected, virtual, inherited]

Definition at line 94 of file singleton.h.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
virtual void Singleton< Runtime >::shutdown (  )  [inline, protected, virtual, inherited]

Definition at line 88 of file singleton.h.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
zmm::Ref<Runtime > Singleton< Runtime >::instance [static, protected, inherited]

Definition at line 91 of file singleton.h.

zmm::Ref<Mutex> Singleton< Runtime >::mutex [static, protected, inherited]

Reimplemented from zmm::Object.

Definition at line 90 of file singleton.h.

JSRuntime* Runtime::rt [protected]

Definition at line 47 of file runtime.h.

Referenced by getRT().

bool Singleton< Runtime >::singletonActive [static, protected, inherited]

Definition at line 92 of file singleton.h.


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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1