diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-01 22:07:53 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-01 22:07:53 +0000 |
commit | f237ccbb8414a63231dbef45df8fb42b48a3b923 (patch) | |
tree | 0480fc2a840f47762f1ecff517f99240fbae51e0 /ace/Malloc.h | |
parent | 7ea34bd80216c224677ced47de722c0a79be4913 (diff) | |
download | ATCD-f237ccbb8414a63231dbef45df8fb42b48a3b923.tar.gz |
Modified double-checking pattern
Diffstat (limited to 'ace/Malloc.h')
-rw-r--r-- | ace/Malloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ace/Malloc.h b/ace/Malloc.h index 1eb0aceb485..4df8997c60c 100644 --- a/ace/Malloc.h +++ b/ace/Malloc.h @@ -124,6 +124,9 @@ private: static ACE_Allocator *allocator_; // Pointer to a process-wide <ACE_Allocator> instance. + static int instantiated_; + // Flag indicating whether the singleton <allocator_> has been instantiated or not. + static int delete_allocator_; // Must delete the <allocator_> if non-0. }; |