Change-Id: I9c7ca76a001983198d6ffbb458911e28aceffac3
mWakeupInfos.push_back(wrapper);
if (nullptr == mTimer) {
ecore_main_loop_thread_safe_call_async([](void* data) {
- CWakeupPolicyDefault* policy = static_cast<CWakeupPolicyDefault*>(data);
- if (!policy) return;
-
- Ecore_Timer* timer = ecore_timer_add(policy->get_delay(), timer_func, data);
- MWR_LOGI("Adding timer : %f", policy->get_delay());
- policy->set_timer(timer);
+ /* Assume that choosing the first wakeup event is the default behavior */
+ timer_func(data);
}, this);
}
}