Ignore:
Timestamp:
Apr 29, 2017, 4:33:37 PM (7 years ago)
Author:
coas-nagasima
Message:

ファイルを追加、更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/kernel/dataqueue.c

    r270 r279  
    66 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    77 *                              Toyohashi Univ. of Technology, JAPAN
    8  *  Copyright (C) 2005-2016 by Embedded and Real-Time Systems Laboratory
     8 *  Copyright (C) 2005-2017 by Embedded and Real-Time Systems Laboratory
    99 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    1010 *
     
    612612        CHECK_ID(VALID_DTQID(dtqid));
    613613        p_dtqcb = get_dtqcb(dtqid);
    614         CHECK_ILUSE(p_dtqcb->p_dtqinib->dtqcnt > 0U);
    615614
    616615        lock_cpu();
    617616        if (p_dtqcb->p_dtqinib->dtqatr == TA_NOEXS) {
    618617                ercd = E_NOEXS;
     618        }
     619        else if (!(p_dtqcb->p_dtqinib->dtqcnt > 0U)) {
     620                ercd = E_ILUSE;
    619621        }
    620622        else {
     
    628630                        }
    629631                }
    630         }
    631632        ercd = E_OK;
     633        }
    632634        unlock_cpu();
    633635
Note: See TracChangeset for help on using the changeset viewer.