| 155 | } |
| 156 | |
| 157 | int ReactorTask::open_reactor_task(ThreadStatusManager* thread_status_manager, |
| 158 | const String& name, |
| 159 | ACE_Reactor* reactor) |
| 160 | { |
| 161 | GuardType guard(lock_); |
| 162 | init_i(thread_status_manager, name, reactor); |
| 163 | |
| 164 | if (activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0) { |
| 165 | ACE_ERROR_RETURN((LM_ERROR, |
| 166 | "(%P|%t) ERROR: ReactorTask Failed to activate " |
| 167 | "itself.\n"), |
| 168 | -1); |
| 169 | } |
| 170 | |
| 171 | while (state_ != STATE_RUNNING) { |
| 172 | condition_.wait(*thread_status_manager); |
| 173 | } |
| 174 | |
| 175 | return 0; |
| 176 | } |
| 177 | |
| 178 | int ReactorTask::svc() |
| 179 | { |
no test coverage detected