diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-11-28 11:01:50 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-11-28 11:01:50 +0000 |
commit | 490263a66ccc06b14e14e59ec9ea1134c3cd22e1 (patch) | |
tree | 654c014f7965dc0056ee96a95e202eb3d0bef02c /ACE/ace/Cleanup.h | |
parent | 20f2fd21a35acf0862fbb80eb8f0645b4377b556 (diff) | |
download | ATCD-490263a66ccc06b14e14e59ec9ea1134c3cd22e1.tar.gz |
Fri Nov 28 10:59:00 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Cleanup.h')
-rw-r--r-- | ACE/ace/Cleanup.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ACE/ace/Cleanup.h b/ACE/ace/Cleanup.h index 7acff23ab79..e3e55f4596a 100644 --- a/ACE/ace/Cleanup.h +++ b/ACE/ace/Cleanup.h @@ -66,9 +66,14 @@ void ACE_CLEANUP_DESTROYER_NAME (ACE_Cleanup *, void *param = 0); class ACE_Export ACE_Cleanup_Info { public: - /// Default constructor. + /// Constructor ACE_Cleanup_Info (void); + /// Constructor. + ACE_Cleanup_Info (void *object, + ACE_CLEANUP_FUNC cleanup_hook, + void *param); + /// Equality operator. bool operator== (const ACE_Cleanup_Info &o) const; @@ -92,6 +97,8 @@ class ACE_Cleanup_Info_Node; * * @brief Hold Object Manager cleanup (exit) information. * + * @internal + * * For internal use by the ACE library, only. */ class ACE_Export ACE_OS_Exit_Info @@ -106,9 +113,9 @@ public: /// Use to register a cleanup hook. int at_exit_i (void *object, ACE_CLEANUP_FUNC cleanup_hook, void *param); - /// Look for a registered cleanup hook object. Returns 1 if already - /// registered, 0 if not. - int find (void *object); + /// Look for a registered cleanup hook object. Returns true if already + /// registered, false if not. + bool find (void *object); /// Call all registered cleanup hooks, in reverse order of /// registration. |