Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp344 auto createOACB = std::make_unique<CreateOAAsyncContext>(); in CreateOsAccount() local
345 createOACB->env = env; in CreateOsAccount()
346 createOACB->throwErr = true; in CreateOsAccount()
348 if (!ParseParaCreateOA(env, cbInfo, createOACB.get())) { in CreateOsAccount()
353 if (createOACB->callbackRef == nullptr) { in CreateOsAccount()
354 napi_create_promise(env, &createOACB->deferred, &result); in CreateOsAccount()
363 reinterpret_cast<void *>(createOACB.get()), &createOACB->work); in CreateOsAccount()
365 napi_queue_async_work_with_qos(env, createOACB->work, napi_qos_default); in CreateOsAccount()
366 createOACB.release(); in CreateOsAccount()