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

Method enable

dds/DCPS/PeriodicTask.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace DCPS {
14
15void PeriodicTask::enable(bool reenable, const TimeDuration& period)
16{
17 {
18 ACE_GUARD(ACE_Thread_Mutex, g, mutex_);
19 user_enabled_ = true;
20 }
21 ReactorTask_rch reactor_task = reactor_task_.lock();
22 if (reactor_task) {
23 reactor_task->execute_or_enqueue(make_rch<ScheduleEnableCommand>(rchandle_from(this), reenable, period));
24 }
25}
26
27void PeriodicTask::disable()
28{

Callers

nothing calls this directly

Calls 3

rchandle_fromFunction · 0.85
execute_or_enqueueMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected