NAME
ACE_Dynamic -
Checks to see if a Svc_Handler was dynamically allocated.
SYNOPSIS
#include <ace/ACE_Dynamic.h >
class ACE_Dynamic
{
public:
ACE_Dynamic (void);
void *set (void *x);
int is_dynamic (void *x);
private:
void *instance_;
};
DESCRIPTION
This class holds the pointer in a thread-safe manner between
the call to operator new and the call to the constructor.
PUBLIC MEMBERS
ACE_Dynamic (void);
void *set (void *x);
Assign the new pointer to instance_
in order to keep it safe
until we can compare it in the constructor.
int is_dynamic (void *x);
1 if we were allocated dynamically, else 0.
PRIVATE MEMBERS
void *instance_;
Holds the pointer in a thread-safe manner between the call to
operator new and the call to the constructor.
AUTHOR
Doug Schmidt and Irfan Pyrarli.
LIBRARY
ace