| 98 | } |
| 99 | |
| 100 | int |
| 101 | Monitor::MonitorTask::open( void*) |
| 102 | { |
| 103 | if( this->opened_) { |
| 104 | return -1; |
| 105 | } |
| 106 | |
| 107 | int result = activate (THR_NEW_LWP | THR_JOINABLE, 1); |
| 108 | if( result != 0) { |
| 109 | ACE_ERROR((LM_ERROR, |
| 110 | ACE_TEXT("(%P|%t) ERROR: MonitorTask::open() - ") |
| 111 | ACE_TEXT("failed to activate the thread.\n") |
| 112 | )); |
| 113 | } |
| 114 | |
| 115 | this->opened_ = true; |
| 116 | return result; |
| 117 | } |
| 118 | |
| 119 | int |
| 120 | Monitor::MonitorTask::close( u_long flags) |
no outgoing calls
no test coverage detected