summaryrefslogtreecommitdiff
path: root/ace/Synch.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-01-05 07:00:52 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-01-05 07:00:52 +0000
commit817f4b70290d19f4cda0fd814cad7a734f11bc47 (patch)
tree7ac2b580156255f4a4def09a54487ad8eb13ba88 /ace/Synch.h
parent61aabdb5eb24027922b77537df994fe6320880bc (diff)
downloadATCD-817f4b70290d19f4cda0fd814cad7a734f11bc47.tar.gz
.
Diffstat (limited to 'ace/Synch.h')
-rw-r--r--ace/Synch.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/ace/Synch.h b/ace/Synch.h
index 9cdfe0fa45e..b3920dce61c 100644
--- a/ace/Synch.h
+++ b/ace/Synch.h
@@ -217,6 +217,13 @@ protected:
ACE_OS::ace_flock_t lock_;
// Locking structure for OS record locks.
+ int removed_;
+ // Keeps track of whether <remove> has been called yet to avoid
+ // multiple <remove> calls, e.g., explicitly and implicitly in the
+ // destructor. This flag isn't protected by a lock, so make sure
+ // that you don't have multiple threads simultaneously calling
+ // <remove> on the same object, which is a bad idea anyway...
+
private:
// = Prevent assignment and initialization.
void operator= (const ACE_File_Lock &);
@@ -537,18 +544,17 @@ protected:
// Remember the name of the mutex if we created it so we can unlink
// it when we go away (only the actor that initialized the memory
// can destroy it).
+#endif /* CHORUS */
+
+ ACE_mutex_t lock_;
+ // Mutex type supported by the OS.
-#else
int removed_;
// Keeps track of whether <remove> has been called yet to avoid
// multiple <remove> calls, e.g., explicitly and implicitly in the
// destructor. This flag isn't protected by a lock, so make sure
// that you don't have multiple threads simultaneously calling
// <remove> on the same object, which is a bad idea anyway...
-#endif /* CHORUS */
-
- ACE_mutex_t lock_;
- // Mutex type supported by the OS.
private:
// = Prevent assignment and initialization.