Home
last modified time | relevance | path

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

/ohos5.0/base/notification/common_event_service/interfaces/kits/napi/common_event/src/
H A Dcommon_event.cpp230 CommonEventDataWorker *commonEventDataWorker = new (std::nothrow) CommonEventDataWorker(); in OnReceiveEvent() local
231 if (commonEventDataWorker == nullptr) { in OnReceiveEvent()
235 commonEventDataWorker->want = data.GetWant(); in OnReceiveEvent()
237 commonEventDataWorker->code = data.GetCode(); in OnReceiveEvent()
238 commonEventDataWorker->data = data.GetData(); in OnReceiveEvent()
239 commonEventDataWorker->ref = ref_; in OnReceiveEvent()
240 commonEventDataWorker->valid = valid_; in OnReceiveEvent()
254 commonEventDataWorker->env = env_; in OnReceiveEvent()
257 napi_call_threadsafe_function(tsfn_, commonEventDataWorker, napi_tsfn_nonblocking); in OnReceiveEvent()
/ohos5.0/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
H A Dnapi_common_event.cpp248 CommonEventDataWorker *commonEventDataWorker = new (std::nothrow) CommonEventDataWorker(); in OnReceiveEvent() local
249 if (commonEventDataWorker == nullptr) { in OnReceiveEvent()
253 commonEventDataWorker->want = data.GetWant(); in OnReceiveEvent()
255 commonEventDataWorker->code = data.GetCode(); in OnReceiveEvent()
256 commonEventDataWorker->data = data.GetData(); in OnReceiveEvent()
257 commonEventDataWorker->ref = ref_; in OnReceiveEvent()
258 commonEventDataWorker->valid = valid_; in OnReceiveEvent()
270 commonEventDataWorker->env = env_; in OnReceiveEvent()
273 napi_call_threadsafe_function(tsfn_, commonEventDataWorker, napi_tsfn_nonblocking); in OnReceiveEvent()
278 if (commonEventDataWorker != nullptr) { in OnReceiveEvent()