Searched refs:needCallback (Results 1 - 2 of 2) sorted by relevance
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_async_work.h | 54 std::shared_ptr<NapiAsyncCallback> asyncCallback, bool needCallback = false) in NapiAsyncWork() 55 : env_(env), func_(func), napiAsyncCallback_(asyncCallback), needCallback_(needCallback) {} in NapiAsyncWork() 67 bool needCallback = false; member 89 std::function<NapiAsyncWorkRet(void)> asyncWork, bool needCallback = ASYNC_WORK_NO_NEED_CALLBACK);
|
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_async_work.cpp | 27 std::function<NapiAsyncWorkRet(void)> asyncWork, bool needCallback) in CreateAsyncWork() 34 auto napiAsyncWork = std::make_shared<NapiAsyncWork>(env, asyncWork, asyncCallback, needCallback); in CreateAsyncWork() 53 HILOGD("needCallback: %{public}d, errCode: %{public}d", needCallback, errCode); in Complete() 60 if (needCallback && (errCode == BT_NO_ERROR)) { in Complete() 96 info->needCallback = needCallback_.load(); in Run() 143 HILOGE("Unsupported in no needCallback mode"); in CallFunction() 26 CreateAsyncWork(napi_env env, napi_callback_info info, std::function<NapiAsyncWorkRet(void)> asyncWork, bool needCallback) CreateAsyncWork() argument
|
Completed in 1 milliseconds