Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/kernel/mutex.c
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/kernel/mutex.c
r321 r429 4 4 * Advanced Standard Profile Kernel 5 5 * 6 * Copyright (C) 2005-201 6by Embedded and Real-Time Systems Laboratory6 * Copyright (C) 2005-2018 by Embedded and Real-Time Systems Laboratory 7 7 * Graduate School of Information Science, Nagoya Univ., JAPAN 8 8 * … … 378 378 } 379 379 else { 380 CHECK_ RSATR(mtxatr, TA_TPRI);/*[NGKI2025]*/380 CHECK_VALIDATR(mtxatr, TA_TPRI); /*[NGKI2025]*/ 381 381 } 382 382 … … 473 473 loc_mtx(ID mtxid) 474 474 { 475 MTXCB *p_mtxcb;476 WINFO_MTX 477 ER ercd;475 MTXCB *p_mtxcb; 476 WINFO_MTX winfo_mtx; 477 ER ercd; 478 478 479 479 LOG_LOC_MTX_ENTER(mtxid); … … 506 506 } 507 507 else { 508 p_runtsk->tstat = TS_WAITING_MTX;509 wobj_make_wait((WOBJCB *) p_mtxcb,(WINFO_WOBJ *) &winfo_mtx);508 wobj_make_wait((WOBJCB *) p_mtxcb, TS_WAITING_MTX, 509 (WINFO_WOBJ *) &winfo_mtx); 510 510 dispatch(); 511 511 ercd = winfo_mtx.winfo.wercd; … … 576 576 tloc_mtx(ID mtxid, TMO tmout) 577 577 { 578 MTXCB *p_mtxcb;579 WINFO_MTX 580 TMEVTB tmevtb;581 ER ercd;578 MTXCB *p_mtxcb; 579 WINFO_MTX winfo_mtx; 580 TMEVTB tmevtb; 581 ER ercd; 582 582 583 583 LOG_TLOC_MTX_ENTER(mtxid, tmout); … … 614 614 } 615 615 else { 616 p_runtsk->tstat = TS_WAITING_MTX; 617 wobj_make_wait_tmout((WOBJCB *) p_mtxcb, (WINFO_WOBJ *) &winfo_mtx, 618 &tmevtb, tmout); 616 wobj_make_wait_tmout((WOBJCB *) p_mtxcb, TS_WAITING_MTX, 617 (WINFO_WOBJ *) &winfo_mtx, &tmevtb, tmout); 619 618 dispatch(); 620 619 ercd = winfo_mtx.winfo.wercd;
Note:
See TracChangeset
for help on using the changeset viewer.