Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 14 of 14) sorted by relevance

/commonlibrary/ets_utils/js_concurrent_module/worker/test/
Dtest_worker.cpp41 napi_value cb = nullptr; in Worker_Constructor() local
42 …i_create_function(env, funcName.c_str(), funcName.size(), Worker::WorkerConstructor, nullptr, &cb); in Worker_Constructor()
63 napi_call_function(env, global, cb, sizeof(argv) / sizeof(argv[0]), argv, &result); in Worker_Constructor()
73 napi_value cb = nullptr; in Worker_Terminate() local
75 napi_create_function(env, funcName.c_str(), funcName.size(), Worker::Terminate, nullptr, &cb); in Worker_Terminate()
76 napi_call_function(env, global, cb, 0, nullptr, &result); in Worker_Terminate()
120 napi_value cb = nullptr; variable
122 … napi_create_function(env, funcName.c_str(), funcName.size(), Worker::PostMessage, worker, &cb);
123 napi_call_function(env, global, cb, sizeof(argv) / sizeof(argv[0]), argv, &result);
144 napi_value cb = nullptr; variable
[all …]
/commonlibrary/c_utils/base/include/
Dio_event_handler.h29 …explicit IOEventHandler(int fd, EventId events = Events::EVENT_NONE, const EventCallback& cb = nul…
50 inline void SetCallback(const EventCallback& cb) in SetCallback() argument
52 cb_ = cb; in SetCallback()
/commonlibrary/c_utils/docs/zh-cn/
Dc_utils_guide_event.md27 - IOEventCallback cb
134 | | **IOEventHandler**(int fd, EventId events =Events::EVENT_NONE, const EventCallback & cb =nullpt…
148 | void | **SetCallback**(const EventCallback & cb)<br>设置具体响应行为/回调函数 |
171 | | **IOEventHandler**(int fd, EventId events =Events::EVENT_NONE, const EventCallback & cb =nullpt…
185 | void | **SetCallback**(const EventCallback & cb)<br>设置具体响应行为/回调函数 |
201 TimerFdHandler(int fd, const TimerEventCallback& cb);
/commonlibrary/c_utils/base/src/
Dio_event_handler.cpp28 IOEventHandler::IOEventHandler(int fd, EventId events, const EventCallback& cb) in IOEventHandler() argument
29 :prev_(nullptr), next_(nullptr), fd_(fd), events_(events), cb_(cb), enabled_(false) {} in IOEventHandler()
Devent_reactor.cpp95 uint32_t EventReactor::ScheduleTimer(const TimerCallback& cb, uint32_t interval, int& timerFd, bool… in ScheduleTimer() argument
99 handler->SetTimerCallback(cb); in ScheduleTimer()
Devent_reactor.h67 …uint32_t ScheduleTimer(const TimerCallback& cb, uint32_t interval /* ms */, int& timerFd, bool onc…
Dtimer.cpp153 std::function<void(int)> cb = std::bind(&Timer::DoTimerListCallback, this, callback, _1); in DoRegister() local
154 uint32_t ret = reactor_->ScheduleTimer(cb, interval, timerFd, once); in DoRegister()
Dio_event_reactor.cpp228 for (const EventCallback& cb : tasks) { in Execute() local
229 cb(); in Execute()
/commonlibrary/ets_utils/js_sys_module/test/unittest/
Dtest_process.cpp423 napi_value cb = nullptr; variable
424 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &cb);
425 process.On(env, temp, cb);
446 napi_value cb = nullptr; variable
447 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &cb);
448 process.On(env, temp, cb);
/commonlibrary/ets_utils/js_sys_module/process/
Djs_process.cpp504 napi_value cb = nullptr; in UnHandleRejection() local
505 NAPI_CALL(env, napi_get_reference_value(env, iter.first->second, &cb)); in UnHandleRejection()
507 NAPI_CALL(env, napi_call_function(env, global, cb, argc, args, &result)); in UnHandleRejection()
557 napi_value cb = nullptr; in SetRejectionCallback() local
560 nullptr, &cb)); in SetRejectionCallback()
562 NAPI_CALL(env, napi_create_reference(env, cb, 1, &unHandleRejectionCallbackRef)); in SetRejectionCallback()
/commonlibrary/ets_utils/js_util_module/util/src/
Dutil_js.ts601 const cb = (...args: Array<null>) => { constant
604 Reflect.apply(original, this, args).then((ret: null) => cb(null, ret), (rej: null) => cb(rej));
629 function cb(...args: Array<string | number | Fn>) {
632 Object.defineProperties(cb, descriptors);
633 return cb;
/commonlibrary/c_utils/base/test/unittest/common/
Dutils_event_test.cpp65 TimerFdHandler(int fd, const TimerEventCallback& cb);
251 TimerFdHandler::TimerFdHandler(int fd, const TimerEventCallback& cb) in TimerFdHandler() argument
252 : IOEventHandler(fd), timerCallback_(cb) {} in TimerFdHandler()
/commonlibrary/ets_utils/
DREADME.en.md772 var cb = util.callbackWrapper(promiseFn);
773 cb((err, ret) => {
DREADME.md2048 var cb = util.callbackWrapper(promiseFn);
2049 cb((err, ret) => {