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/Filecache.h | |
parent | 7ea34bd80216c224677ced47de722c0a79be4913 (diff) | |
download | ATCD-f237ccbb8414a63231dbef45df8fb42b48a3b923.tar.gz |
Modified double-checking pattern
Diffstat (limited to 'ace/Filecache.h')
-rw-r--r-- | ace/Filecache.h | 5 |
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]; }; |