summaryrefslogtreecommitdiff
path: root/ace/Module.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-03-11 01:33:47 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-03-11 01:33:47 +0000
commit9561ccc9b4a10d6f9a06650cad98057bd0fdee16 (patch)
treea02fc4d47216d6b8a9c0eb204fd3eade58b9fc3b /ace/Module.cpp
parentb4434ce8667c30f62cff816ba687d1e5bae7fa95 (diff)
downloadATCD-9561ccc9b4a10d6f9a06650cad98057bd0fdee16.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Module.cpp')
-rw-r--r--ace/Module.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/ace/Module.cpp b/ace/Module.cpp
index 93fe1d8b84a..a65efe1e2e2 100644
--- a/ace/Module.cpp
+++ b/ace/Module.cpp
@@ -30,9 +30,14 @@ ACE_Module<ACE_SYNCH_USE>::writer (ACE_Task<ACE_SYNCH_USE> *q,
this->close_i (1, flags);
this->q_pair_[1] = q;
+
if (q != 0)
- ACE_CLR_BITS (q->flags_, ACE_Task_Flags::ACE_READER);
-
+ {
+ ACE_CLR_BITS (q->flags_, ACE_Task_Flags::ACE_READER);
+ // Set the q's module pointer to point to us.
+ q->mod_ = this;
+ }
+
// Don't allow the caller to change the reader status.
ACE_SET_BITS (flags_, (flags & M_DELETE_WRITER));
}
@@ -47,8 +52,13 @@ ACE_Module<ACE_SYNCH_USE>::reader (ACE_Task<ACE_SYNCH_USE> *q,
this->close_i (0, flags);
this->q_pair_[0] = q;
+
if (q != 0)
- ACE_SET_BITS (q->flags_, ACE_Task_Flags::ACE_READER);
+ {
+ ACE_SET_BITS (q->flags_, ACE_Task_Flags::ACE_READER);
+ // Set the q's module pointer to point to us.
+ q->mod_ = this;
+ }
// don't allow the caller to change the reader status
ACE_SET_BITS (flags_, (flags & M_DELETE_READER));