util/objman.cpp File Reference

Include dependency graph for objman.cpp:

Go to the source code of this file.

Namespaces

namespace  org
namespace  org::xmlBlaster
namespace  org::xmlBlaster::util

Defines

#define PREALLOCATE_OBJECT(TYPE, ID)

Functions

void object_manager_cleanup ()
 Author: Martin Johnson.


Define Documentation

#define PREALLOCATE_OBJECT ( TYPE,
ID   ) 

Value:

{\
  TYPE* t = new TYPE;\
  ManagedObject<TYPE> *obj_p;\
  obj_p = new  ManagedObject<TYPE>(t);\
  preallocated_object[ID] = obj_p;\
}

Definition at line 25 of file objman.cpp.

Referenced by org::xmlBlaster::util::Object_Lifetime_Manager::startup().


Function Documentation

void object_manager_cleanup (  ) 

Author: Martin Johnson.

Based upon http://www.cs.wustl.edu/~schmidt/PDF/ObjMan.pdf with some modification.

Synopsis: Support for Preallocated Managed Objects and Managed Objects. Managed Objects are required to grant friendship to the following

template <class type>=""> friend class ManagedObject; friend class Object_Lifetime_Manager;

Applications utilising Object_Lifetime_Manager are required to call

Definition at line 14 of file objman.cpp.