Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp311 auto activeOACB = std::make_unique<ActivateOAAsyncContext>(); in ActivateOsAccount() local
312 activeOACB->env = env; in ActivateOsAccount()
313 activeOACB->throwErr = true; in ActivateOsAccount()
315 if (!ParseParaActiveOA(env, cbInfo, activeOACB.get())) { in ActivateOsAccount()
320 if (activeOACB->callbackRef == nullptr) { in ActivateOsAccount()
321 napi_create_promise(env, &activeOACB->deferred, &result); in ActivateOsAccount()
334 reinterpret_cast<void *>(activeOACB.get()), in ActivateOsAccount()
335 &activeOACB->work); in ActivateOsAccount()
337 napi_queue_async_work_with_qos(env, activeOACB->work, napi_qos_default); in ActivateOsAccount()
338 activeOACB.release(); in ActivateOsAccount()