Home
last modified time | relevance | path

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

/kernel/uniproton/src/core/ipc/event/
Dprt_event.c36 …_INLINE INLINE bool OsIsEventNotMatch(U32 flags, U32 event, U32 eventMask, struct TagTskCb *runTsk) in OsIsEventNotMatch() argument
40 TSK_STATUS_SET(runTsk, OS_TSK_EVENT_TYPE); in OsIsEventNotMatch()
45 TSK_STATUS_CLEAR(runTsk, OS_TSK_EVENT_TYPE); in OsIsEventNotMatch()
54 OS_SEC_ALW_INLINE INLINE void OsEventTimeOutSet(U32 timeOut, struct TagTskCb *runTsk) in OsEventTimeOutSet() argument
57 TSK_STATUS_CLEAR(runTsk, OS_TSK_TIMEOUT); in OsEventTimeOutSet()
59 TSK_STATUS_SET(runTsk, OS_TSK_TIMEOUT); in OsEventTimeOutSet()
60 OsTskTimerAdd(runTsk, timeOut); in OsEventTimeOutSet()
64 OS_SEC_ALW_INLINE INLINE U32 OsEventReadNeedSche(U32 flags, struct TagTskCb *runTsk, in OsEventReadNeedSche() argument
77 OsTskReadyDel(runTsk); in OsEventReadNeedSche()
79 TSK_STATUS_SET(runTsk, OS_TSK_EVENT_PEND); in OsEventReadNeedSche()
[all …]
/kernel/uniproton/src/core/ipc/sem/
Dprt_sem.c27 struct TagTskCb *runTsk = RUNNING_TASK; in OsSemPendListPut() local
28 struct TagListObject *pendObj = &runTsk->pendList; in OsSemPendListPut()
30 OsTskReadyDel((struct TagTskCb *)runTsk); in OsSemPendListPut()
32 runTsk->taskSem = (void *)semPended; in OsSemPendListPut()
34 TSK_STATUS_SET(runTsk, OS_TSK_PEND); in OsSemPendListPut()
38 if (curTskCb->priority > runTsk->priority) { in OsSemPendListPut()
50 OsTskTimerAdd((struct TagTskCb *)runTsk, timeOut); in OsSemPendListPut()
52 TSK_STATUS_SET(runTsk, OS_TSK_TIMEOUT); in OsSemPendListPut()
94 OS_SEC_L0_TEXT bool OsSemPendNotNeedSche(struct TagSemCb *semPended, struct TagTskCb *runTsk) in OsSemPendNotNeedSche() argument
99 semPended->semOwner = runTsk->taskPid; in OsSemPendNotNeedSche()
[all …]
/kernel/uniproton/src/core/ipc/queue/
Dprt_queue.c38 struct TagTskCb *runTsk = NULL; in OsInnerPend() local
61 runTsk = (struct TagTskCb *)RUNNING_TASK; in OsInnerPend()
64 OsTskReadyDel(runTsk); in OsInnerPend()
66 TSK_STATUS_SET(runTsk, OS_TSK_QUEUE_PEND); in OsInnerPend()
67 ListTailAdd(&runTsk->pendList, pendList); in OsInnerPend()
72 TSK_STATUS_SET(runTsk, OS_TSK_TIMEOUT); in OsInnerPend()
73 OsTskTimerAdd(runTsk, timeOut); in OsInnerPend()
79 TSK_STATUS_CLEAR(runTsk, OS_TSK_QUEUE_BUSY); in OsInnerPend()
82 if ((runTsk->taskStatus & OS_TSK_TIMEOUT) != 0) { in OsInnerPend()
83 TSK_STATUS_CLEAR(runTsk, OS_TSK_TIMEOUT); in OsInnerPend()
/kernel/liteos_m/kernel/src/
Dlos_event.c101 LosTaskCB *runTsk = NULL; in LOS_EventRead() local
127 runTsk = g_losTask.runTask; in LOS_EventRead()
128 runTsk->eventMask = eventMask; in LOS_EventRead()
129 runTsk->eventMode = mode; in LOS_EventRead()
135 if (runTsk->taskStatus & OS_TASK_STATUS_TIMEOUT) { in LOS_EventRead()
136 runTsk->taskStatus &= ~OS_TASK_STATUS_TIMEOUT; in LOS_EventRead()
Dlos_queue.c408 LosTaskCB *runTsk = (LosTaskCB *)g_losTask.runTask; in OsQueueOperate() local
414 if (runTsk->taskStatus & OS_TASK_STATUS_TIMEOUT) { in OsQueueOperate()
415 runTsk->taskStatus &= ~OS_TASK_STATUS_TIMEOUT; in OsQueueOperate()
556 LosTaskCB *runTsk = (LosTaskCB *)NULL; in OsQueueMailAlloc() local
584 runTsk = (LosTaskCB *)g_losTask.runTask; in OsQueueMailAlloc()
590 if (runTsk->taskStatus & OS_TASK_STATUS_TIMEOUT) { in OsQueueMailAlloc()
591 runTsk->taskStatus &= (~OS_TASK_STATUS_TIMEOUT); in OsQueueMailAlloc()
597 mem = runTsk->msg; in OsQueueMailAlloc()
598 runTsk->msg = NULL; in OsQueueMailAlloc()