MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / open_reactor_task

Method open_reactor_task

dds/DCPS/ReactorTask.cpp:157–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157int 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
178int ReactorTask::svc()
179{

Callers 6

create_reactor_taskMethod · 0.80
TESTFunction · 0.80
check_timingMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

init_iFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected