diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-18 14:08:44 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-18 14:08:44 +0000 |
commit | 2a067002d4ba539e64102adb2dc442dd6d5a4e1f (patch) | |
tree | ec3df18cdcd092fc1514c25d2930282e29469a9a /ace/Dynamic.h | |
parent | 59034a0d002f307c0d2eac1624ec8e8f850ae399 (diff) | |
download | ATCD-2a067002d4ba539e64102adb2dc442dd6d5a4e1f.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Dynamic.h')
-rw-r--r-- | ace/Dynamic.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/ace/Dynamic.h b/ace/Dynamic.h index 569f029b6c6..8411dc9ad25 100644 --- a/ace/Dynamic.h +++ b/ace/Dynamic.h @@ -22,7 +22,7 @@ class ACE_Export ACE_Dynamic // = TITLE - // Checks to see if a Svc_Handler was dynamically allocated. + // Checks to see if an object was dynamically allocated. // // = DESCRIPTION // This class holds the pointer in a thread-safe manner between @@ -31,17 +31,22 @@ class ACE_Export ACE_Dynamic public: 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. + void set (void); + // Sets a flag that indicates that the object was dynamically + // created. This method is usually called in operator new and then + // checked and reset in the constructor. - int is_dynamic (void *x); + int is_dynamic (void); // 1 if we were allocated dynamically, else 0. + void reset (void); + // Resets state flag. + private: - void *instance_; - // Holds the pointer in a thread-safe manner between the call to - // operator new and the call to the constructor. + int is_dynamic_; + // Flag that indicates that the object was dynamically created. This + // method is usually called in operator new and then checked and + // reset in the constructor. }; #if defined (__ACE_INLINE__) |