| 117 | } |
| 118 | |
| 119 | int |
| 120 | Monitor::MonitorTask::close( u_long flags) |
| 121 | { |
| 122 | if( flags == 0) { |
| 123 | return 0; |
| 124 | } |
| 125 | |
| 126 | // Shutdown current processing. |
| 127 | this->stopInstrumentation(); |
| 128 | |
| 129 | // This is the single location where this member is written, don't |
| 130 | // bother to lock access. |
| 131 | this->done_ = true; |
| 132 | |
| 133 | this->guardCondition_->set_trigger_value( true); |
| 134 | |
| 135 | if( this->opened_ && (this->thread_ != ACE_OS::thr_self())) { |
| 136 | this->wait(); |
| 137 | } |
| 138 | return 0; |
| 139 | } |
| 140 | |
| 141 | void |
| 142 | Monitor::MonitorTask::start() |
no test coverage detected