Lines Matching refs:tcb
276 static int SigProcessSignalHandler(LosTaskCB *tcb, void *arg)
282 if (tcb == NULL) {
286 /* If the default tcb is not set, then set this one as default. */
288 info->defaultTcb = tcb;
291 isMember = OsSigIsMember(&tcb->sig.sigwaitmask, info->sigInfo->si_signo);
293 /* This means the task is waiting for this signal. Stop looking for it and use this tcb.
297 ret = OsTcbDispatch(tcb, info->sigInfo);
300 /* set this tcb as awakenedTcb */
301 info->awakenedTcb = tcb;
305 isMember = OsSigIsMember(&tcb->sig.sigprocmask, info->sigInfo->si_signo);
306 if ((!isMember) && (!info->receivedTcb) && (tcb != info->awakenedTcb)) {
309 info->unblockedTcb = tcb;
312 ret = OsTcbDispatch(tcb, info->sigInfo);
314 /* set this tcb as receivedTcb */
315 info->receivedTcb = tcb;
321 static int SigProcessKillSigHandler(LosTaskCB *tcb, void *arg)
325 return OsPendingTaskWake(tcb, info->sigInfo->si_signo);
330 LosTaskCB *tcb = NULL;
334 tcb = info->unblockedTcb;
336 tcb = info->defaultTcb;
341 (void)OsTcbDispatch(tcb, sigInfo);
557 LosTaskCB *tcb = NULL;
565 tcb = OsCurrTaskGet();
566 *set = tcb->sig.sigPendFlag;