Home
last modified time | relevance | path

Searched refs:TimerCallback (Results 1 – 11 of 11) sorted by relevance

/commonlibrary/c_utils/base/src/
Dtimer_event_handler.h30 using TimerCallback = std::function<void(int timerFd)>; variable
44 void SetTimerCallback(const TimerCallback& callback) { callback_ = callback; } in SetTimerCallback()
54 TimerCallback callback_;
Devent_reactor.h34 using TimerCallback = std::function<void(int timerFd)>;
67 …uint32_t ScheduleTimer(const TimerCallback& cb, uint32_t interval /* ms */, int& timerFd, bool onc…
Devent_reactor.cpp95 uint32_t EventReactor::ScheduleTimer(const TimerCallback& cb, uint32_t interval, int& timerFd, bool… in ScheduleTimer()
Dtimer.cpp76 uint32_t Timer::Register(const TimerCallback& callback, uint32_t interval /* ms */, bool once) in Register()
/commonlibrary/c_utils/base/include/
Dtimer.h52 using TimerCallback = std::function<void ()>;
53 using TimerCallbackPtr = std::shared_ptr<TimerCallback>;
107 uint32_t Register(const TimerCallback& callback, uint32_t interval /* ms */, bool once = false);
131 TimerCallback callback;
/commonlibrary/ets_utils/js_sys_module/timer/test/
Dtest_timer.cpp40 NativeValue *TimerCallback(NativeEngine *engine, NativeCallbackInfo *info) in TimerCallback() function
119 TimerCallback, nullptr);
141 TimerCallback, nullptr);
159 TimerCallback, nullptr);
229 TimerCallback, nullptr);
266 TimerCallback, nullptr);
283 TimerCallback, nullptr);
/commonlibrary/c_utils/docs/zh-cn/
Dc_utils_timer.md15 | uint32_t | **Register**(const TimerCallback& callback, uint32_t interval, bool once = false)<br>注…
/commonlibrary/ets_utils/js_sys_module/timer/
Dtimer.h67 static void TimerCallback(uv_timer_t* handle);
Dtimer.cpp103 void Timer::TimerCallback(uv_timer_t* handle) in TimerCallback() function in OHOS::JsSysModule::Timer
224 …uv_timer_start(callbackInfo->timeReq_, TimerCallback, timeout >= 0 ? timeout : 1, timeout > 0 ? ti… in SetTimeoutInner()
/commonlibrary/c_utils/base/test/unittest/common/
Dutils_event_test.cpp597 using TimerCallback = std::function<void ()>; typedef in OHOS::__anon3e7ca7f90111::Timer
598 using TimerCallbackPtr = std::shared_ptr<TimerCallback>;
605 uint32_t Register(const TimerCallback& callback, uint32_t interval /* ms */, bool once = false);
610 void OnTimer(TimerEventHandler* handler, const TimerCallback& callback);
709 uint32_t Timer::Register(const TimerCallback& callback, uint32_t interval /* ms */, bool once) in Register()
771 void Timer::OnTimer(TimerEventHandler* handler, const TimerCallback& callback) in OnTimer()
/commonlibrary/c_utils/docs/en/
Dc_utils_timer.md15 | uint32_t | **Register**(const TimerCallback& callback, uint32_t interval, bool once = false)<br>R…