Searched refs:TimerCallback (Results 1 – 11 of 11) sorted by relevance
/commonlibrary/c_utils/base/src/ |
D | timer_event_handler.h | 30 using TimerCallback = std::function<void(int timerFd)>; variable 44 void SetTimerCallback(const TimerCallback& callback) { callback_ = callback; } in SetTimerCallback() 54 TimerCallback callback_;
|
D | event_reactor.h | 34 using TimerCallback = std::function<void(int timerFd)>; 67 …uint32_t ScheduleTimer(const TimerCallback& cb, uint32_t interval /* ms */, int& timerFd, bool onc…
|
D | event_reactor.cpp | 95 uint32_t EventReactor::ScheduleTimer(const TimerCallback& cb, uint32_t interval, int& timerFd, bool… in ScheduleTimer()
|
D | timer.cpp | 76 uint32_t Timer::Register(const TimerCallback& callback, uint32_t interval /* ms */, bool once) in Register()
|
/commonlibrary/c_utils/base/include/ |
D | timer.h | 52 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/ |
D | test_timer.cpp | 40 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/ |
D | c_utils_timer.md | 15 | uint32_t | **Register**(const TimerCallback& callback, uint32_t interval, bool once = false)<br>注…
|
/commonlibrary/ets_utils/js_sys_module/timer/ |
D | timer.h | 67 static void TimerCallback(uv_timer_t* handle);
|
D | timer.cpp | 103 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/ |
D | utils_event_test.cpp | 597 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/ |
D | c_utils_timer.md | 15 | uint32_t | **Register**(const TimerCallback& callback, uint32_t interval, bool once = false)<br>R…
|