summaryrefslogtreecommitdiff
path: root/ace/Malloc.h
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-01 22:07:53 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-01 22:07:53 +0000
commitf237ccbb8414a63231dbef45df8fb42b48a3b923 (patch)
tree0480fc2a840f47762f1ecff517f99240fbae51e0 /ace/Malloc.h
parent7ea34bd80216c224677ced47de722c0a79be4913 (diff)
downloadATCD-f237ccbb8414a63231dbef45df8fb42b48a3b923.tar.gz
Modified double-checking pattern
Diffstat (limited to 'ace/Malloc.h')
-rw-r--r--ace/Malloc.h3
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.
};