Lines Matching refs:muxPosted
279 LosMuxCB *muxPosted = NULL;
284 muxPosted = GET_MUX(muxHandle);
287 if (muxPosted->muxStat == OS_MUX_UNUSED) {
293 if ((muxPosted->muxCount == 0) || (muxPosted->owner != runningTask)) {
298 if ((--(muxPosted->muxCount) != 0) && (mutex->stAttr.type == PTHREAD_MUTEX_RECURSIVE)) {
300 OsHookCall(LOS_HOOK_TYPE_MUX_POST, muxPosted);
304 if ((muxPosted->owner->priority) != muxPosted->priority) {
305 (VOID)OsSchedModifyTaskSchedParam(muxPosted->owner, muxPosted->priority);
308 if (!LOS_ListEmpty(&muxPosted->muxList)) {
309 resumedTask = OS_TCB_FROM_PENDLIST(LOS_DL_LIST_FIRST(&(muxPosted->muxList)));
311 muxPosted->muxCount = 1;
312 muxPosted->owner = resumedTask;
313 muxPosted->priority = resumedTask->priority;
319 OsHookCall(LOS_HOOK_TYPE_MUX_POST, muxPosted);
322 muxPosted->owner = NULL;