/commonlibrary/ets_utils/js_concurrent_module/worker/test/ |
D | test_worker.cpp | 41 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/ |
D | io_event_handler.h | 29 …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/ |
D | c_utils_guide_event.md | 27 - 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/ |
D | io_event_handler.cpp | 28 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()
|
D | event_reactor.cpp | 95 uint32_t EventReactor::ScheduleTimer(const TimerCallback& cb, uint32_t interval, int& timerFd, bool… in ScheduleTimer() argument 99 handler->SetTimerCallback(cb); in ScheduleTimer()
|
D | event_reactor.h | 67 …uint32_t ScheduleTimer(const TimerCallback& cb, uint32_t interval /* ms */, int& timerFd, bool onc…
|
D | timer.cpp | 153 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()
|
D | io_event_reactor.cpp | 228 for (const EventCallback& cb : tasks) { in Execute() local 229 cb(); in Execute()
|
/commonlibrary/ets_utils/js_sys_module/test/unittest/ |
D | test_process.cpp | 423 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/ |
D | js_process.cpp | 504 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/ |
D | util_js.ts | 601 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/ |
D | utils_event_test.cpp | 65 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/ |
D | README.en.md | 772 var cb = util.callbackWrapper(promiseFn); 773 cb((err, ret) => {
|
D | README.md | 2048 var cb = util.callbackWrapper(promiseFn); 2049 cb((err, ret) => {
|