Home
last modified time | relevance | path

Searched refs:napiAsyncWork (Results 1 - 2 of 2) sorted by relevance

/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_async_work.cpp34 auto napiAsyncWork = std::make_shared<NapiAsyncWork>(env, asyncWork, asyncCallback, needCallback); in CreateAsyncWork() local
35 return napiAsyncWork; in CreateAsyncWork()
40 if (napiAsyncWork == nullptr) { in Execute()
41 HILOGE("napiAsyncWork is nullptr"); in Execute()
46 auto ret = napiAsyncWork->func_(); in Execute()
54 if (napiAsyncWork == nullptr) { in Complete()
55 HILOGE("napiAsyncWork is nullptr"); in Complete()
61 if (napiAsyncWork->triggered_) { in Complete()
66 std::weak_ptr<NapiAsyncWork> asyncWorkWptr = napiAsyncWork; in Complete()
75 NapiTimer::GetInstance()->Register(func, napiAsyncWork in Complete()
[all...]
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_async_work.h70 std::shared_ptr<NapiAsyncWork> napiAsyncWork = nullptr; member

Completed in 1 milliseconds