summaryrefslogtreecommitdiff
path: root/ace/Filecache.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/Filecache.h
parent7ea34bd80216c224677ced47de722c0a79be4913 (diff)
downloadATCD-f237ccbb8414a63231dbef45df8fb42b48a3b923.tar.gz
Modified double-checking pattern
Diffstat (limited to 'ace/Filecache.h')
-rw-r--r--ace/Filecache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ace/Filecache.h b/ace/Filecache.h
index 468b5254157..1495c5dac27 100644
--- a/ace/Filecache.h
+++ b/ace/Filecache.h
@@ -225,7 +225,10 @@ private:
static ACE_Filecache *cvf_;
// The reference to the instance
- // = Synchronization variables.
+ static int instantiated_;
+ // Flag indicating whether <cvf_> has been instantiated or not.
+
+ // = Synchronization variables.
ACE_SYNCH_RW_MUTEX hash_lock_[DEFAULT_VIRTUAL_FILESYSTEM_TABLE_SIZE];
ACE_SYNCH_RW_MUTEX file_lock_[DEFAULT_VIRTUAL_FILESYSTEM_TABLE_SIZE];
};