Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_async_work.cpp38 return napiAsyncWork; in CreateAsyncWork()
43 if (napiAsyncWork == nullptr) { in Execute()
49 auto ret = napiAsyncWork->func_(); in Execute()
57 if (napiAsyncWork == nullptr) { in Complete()
64 if (napiAsyncWork->triggered_) { in Complete()
69 std::weak_ptr<NapiAsyncWork> asyncWorkWptr = napiAsyncWork; in Complete()
78 NapiTimer::GetInstance()->Register(func, napiAsyncWork->timerId_); in Complete()
87 if (napiAsyncWork->napiAsyncCallback_) { in Complete()
88 napiAsyncWork->triggered_ = true; in Complete()
89 napiAsyncWork->napiAsyncCallback_->CallFunction(errCode, object); in Complete()
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_async_work.h71 std::shared_ptr<NapiAsyncWork> napiAsyncWork = nullptr; member