From cee658604b56bd4e067f79eadfe81040d1c3dc8a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 25 Sep 2001 23:58:11 +0000 Subject: [PATCH] fixed unprotected increment that might cause problems on RISC arch --- src/db/dbEvent.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/db/dbEvent.c b/src/db/dbEvent.c index 05b01e4be..f3cff466f 100644 --- a/src/db/dbEvent.c +++ b/src/db/dbEvent.c @@ -388,7 +388,10 @@ dbEventSubscription epicsShareAPI db_add_event ( pevent->pLastLog = NULL; /* not yet in the queue */ pevent->callBackInProgress = FALSE; - ev_que->quota += EVENTENTRIES; + LOCKEVQUE(ev_que); + ev_que->quota += EVENTENTRIES; + UNLOCKEVQUE(ev_que); + pevent->ev_que = ev_que; /* @@ -891,7 +894,7 @@ LOCAL void event_task (void *pParm) } for ( ev_que = &evUser->firstque; ev_que; - ev_que = ev_que->nextque) { + ev_que = ev_que->nextque ) { event_read (ev_que); }