diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-24 07:03:40 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-24 07:03:40 +0000 |
commit | 31130f25f6b99f86965afd6b90254816fecc8e4f (patch) | |
tree | 1a52d50f642585dbbc8ca914310e72693506ecec | |
parent | ba2581a7b6a47452cdf2c2d5c7d41823a18d1f95 (diff) | |
download | ATCD-31130f25f6b99f86965afd6b90254816fecc8e4f.tar.gz |
Updated documentation for old <at_exit> method.
-rw-r--r-- | ace/Thread_Manager.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h index 75f96140e8e..f7dea46adb5 100644 --- a/ace/Thread_Manager.h +++ b/ace/Thread_Manager.h @@ -640,14 +640,21 @@ public: int at_exit (void *object, ACE_CLEANUP_FUNC cleanup_hook, void *param); - // Register an object (or array) for cleanup at thread termination. - // "cleanup_hook" points to a (global, or static member) function - // that is called for the object or array when it to be destroyed. - // It may perform any necessary cleanup specific for that object or - // its class. "param" is passed as the second parameter to the - // "cleanup_hook" function; the first parameter is the object (or - // array) to be destroyed. "cleanup_hook", for example, may delete - // the object (or array). + // *** This function is deprecated. Please use the previous two + // *** at_exit method. Notice that you should avoid mixing this method + // *** with the previous two at_exit methods. + // + // Register an object (or array) for cleanup at + // thread termination. "cleanup_hook" points to a (global, or + // static member) function that is called for the object or array + // when it to be destroyed. It may perform any necessary cleanup + // specific for that object or its class. "param" is passed as the + // second parameter to the "cleanup_hook" function; the first + // parameter is the object (or array) to be destroyed. + // "cleanup_hook", for example, may delete the object (or array). + // If <cleanup_hook> == 0, the <object> will _NOT_ get cleanup at + // thread exit. You can use this to cancel the previously added + // at_exit. void wait_on_exit (int dowait); int wait_on_exit (void); |