Searched refs:pContext (Results 1 – 3 of 3) sorted by relevance
61 std::unique_ptr<SendCallbackContext> pContext(static_cast<SendCallbackContext *>(work->data)); in CompleteSmsSendWork() local62 if (pContext == nullptr) { in CompleteSmsSendWork()66 napi_env env_ = pContext->env; in CompleteSmsSendWork()67 napi_ref thisVarRef_ = pContext->thisVarRef; in CompleteSmsSendWork()68 napi_ref callbackRef_ = pContext->callbackRef; in CompleteSmsSendWork()69 SendSmsResult wrapResult = pContext->result; in CompleteSmsSendWork()109 SendCallbackContext *pContext = std::make_unique<SendCallbackContext>().release(); in OnSmsSendResult() local110 if (pContext == nullptr) { in OnSmsSendResult()116 pContext->env = env_; in OnSmsSendResult()117 pContext->thisVarRef = thisVarRef_; in OnSmsSendResult()[all …]
43 …std::unique_ptr<DeliveryCallbackContext> pContext(static_cast<DeliveryCallbackContext *>(work->dat… in CompleteSmsDeliveryWork() local44 if (pContext == nullptr) { in CompleteSmsDeliveryWork()48 napi_env env_ = pContext->env; in CompleteSmsDeliveryWork()49 napi_ref thisVarRef_ = pContext->thisVarRef; in CompleteSmsDeliveryWork()50 napi_ref callbackRef_ = pContext->callbackRef; in CompleteSmsDeliveryWork()51 std::string pduStr_ = pContext->pduStr; in CompleteSmsDeliveryWork()103 DeliveryCallbackContext *pContext = std::make_unique<DeliveryCallbackContext>().release(); in OnSmsDeliveryResult() local104 if (pContext == nullptr) { in OnSmsDeliveryResult()110 pContext->env = env_; in OnSmsDeliveryResult()111 pContext->thisVarRef = thisVarRef_; in OnSmsDeliveryResult()[all …]
83 AsyncContext<T> *pContext = asyncContext.release(); in NapiCreateAsyncWork() local86 … env, nullptr, resourceName, exec, complete, static_cast<void *>(pContext), &context.work)); in NapiCreateAsyncWork()88 delete pContext; in NapiCreateAsyncWork()