Home | History | Annotate | Download | only in core

Lines Matching defs:evtType

338 static inline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* evtData)
342 EVENT_WITH_ORIGIN(evtType, osTaskIsChre(task) ? fromTid : 0),
369 uint32_t evtType = act->privateEvt.evtType;
375 osLog(LOG_ERROR, "ERROR: Failed to find task to free event: evtType=%08" PRIX32 "\n", evtType);
380 if (osTaskIsChre(srcTask) && (evtType >> 16) == EVT_PRIVATE_CLASS_CHRE) {
383 evtType & EVT_MASK, evtData);
394 struct AppEventFreeData fd = {.evtType = evtType, .evtData = evtData};
401 static void handleEventFreeing(uint32_t evtType, void *evtData, TaggedPtr evtFreeData) // watch out, this is synchronous
403 struct Task *srcTask = osTaskFindByTid(EVENT_GET_ORIGIN(evtType));
406 osLog(LOG_ERROR, "ERROR: Failed to find task to free event: evtType=%08" PRIX32 "\n", evtType);
422 struct AppEventFreeData fd = {.evtType = EVENT_GET_EVENT(evtType), .evtData = evtData};
1039 static void osInternalEvtHandle(uint32_t evtType, void *evtData)
1044 uint16_t tid = EVENT_GET_ORIGIN(evtType);
1045 uint16_t evt = EVENT_GET_EVENT(evtType), newEvt;
1118 evtType = da->privateEvt.evtType & EVT_MASK;
1124 osTaskHandle(task, evtType, da->privateEvt.fromTid, da->privateEvt.evtData);
1149 void osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP)
1152 handleEventFreeing(evtType, evtData, *evtFreeingInfoP);
1177 uint32_t evtType, j;
1183 if (!evtQueueDequeue(mEvtsInternal, &evtType, &evtData, &evtFreeingInfo, true))
1188 tid = EVENT_GET_ORIGIN(evtType);
1189 evt = EVENT_GET_EVENT(evtType);
1193 osInternalEvtHandle(evtType, evtData);
1208 handleEventFreeing(evtType, evtData, evtFreeingInfo);
1267 bool osEventSubscribe(uint32_t tid, uint32_t evtType)
1270 return osEventsSubscribeUnsubscribe(true, 1, evtType);
1273 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType)
1276 return osEventsSubscribeUnsubscribe(false, 1, evtType);
1306 uint32_t evtType = EVENT_WITH_ORIGIN(evt, osGetCurrentTid());
1311 !evtQueueEnqueue(mEvtsInternal, evtType, evtData, evtFreeInfo, urgent)) {
1319 void osRemovePendingEvents(bool (*match)(uint32_t evtType, const void *evtData, void *context), void *context)
1324 bool osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF)
1326 return osEnqueueEvtCommon(evtType, evtData, taggedPtrMakeFromPtr(evtFreeF), false);
1329 bool osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF)
1331 bool success = osEnqueueEvt(evtType, evtData, evtFreeF);
1339 bool osEnqueueEvtAsApp(uint32_t evtType, void *evtData, bool freeData)
1342 if (evtType & EVENT_TYPE_BIT_DISCARDABLE_COMPAT)
1343 evtType |= EVENT_TYPE_BIT_DISCARDABLE;
1345 return osEnqueueEvtCommon(evtType, evtData, freeData ? taggedPtrMakeFromUint(osGetCurrentTid()) : taggedPtrMakeFromPtr(NULL), false);
1364 static bool osEnqueuePrivateEvtEx(uint32_t evtType, void *evtData, TaggedPtr evtFreeInfo, uint32_t toTid)
1376 act->privateEvt.evtType = evtType;
1389 bool osEnqueuePrivateEvtNew(uint16_t evtType, void *evtData,
1390 void (*evtFreeCallback)(uint16_t evtType, void *evtData),
1393 if (!osEnqueuePrivateEvtEx(evtType | (EVT_PRIVATE_CLASS_CHRE << 16), evtData,
1395 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData);
1401 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid)
1403 return osEnqueuePrivateEvtEx(evtType & EVT_MASK, evtData, taggedPtrMakeFromPtr(evtFreeF), toTid);
1406 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid)
1408 return osEnqueuePrivateEvtEx(evtType & EVT_MASK, evtData, taggedPtrMakeFromUint(osGetCurrentTid()), toTid);