git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@57 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
0b2068db8c
commit
de194f4d96
|
@ -38,6 +38,9 @@ AVR-AT90CANx-GCC - Port on AVR AT90CAN128, not complete yet.
|
|||
*** Releases ***
|
||||
*****************************************************************************
|
||||
|
||||
*** 0.3.5 ***
|
||||
- Space optimization in events code.
|
||||
|
||||
*** 0.3.4 ***
|
||||
- Fixed a problem in chVTSetI().
|
||||
- New API, chVTIsArmedI(), it is a macro in delta.h.
|
||||
|
|
|
@ -91,19 +91,10 @@ void chEvtClear(t_eventmask mask) {
|
|||
* @param esp pointer to the \p EventSource structure
|
||||
*/
|
||||
void chEvtSend(EventSource *esp) {
|
||||
EventListener *elp;
|
||||
|
||||
chSysLock();
|
||||
|
||||
elp = esp->es_next;
|
||||
while (elp != (EventListener *)esp) {
|
||||
Thread *tp = elp->el_listener;
|
||||
|
||||
tp->p_epending |= EventMask(elp->el_id);
|
||||
if ((tp->p_state == PRWTEVENT) && (tp->p_epending & tp->p_ewmask))
|
||||
chSchReadyI(tp);
|
||||
elp = elp->el_next;
|
||||
}
|
||||
chEvtSendI(esp);
|
||||
chSchRescheduleS();
|
||||
|
||||
chSysUnlock();
|
||||
|
|
Loading…
Reference in New Issue