From 65d28cbe058143bda32ba61df4f9cd8843a035d5 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 15 Sep 1999 00:05:17 +0000 Subject: [PATCH] added Ken evans's event performance counters --- src/cas/generic/casEventSys.cc | 31 ------------------ src/cas/generic/casEventSysIL.h | 56 +++++++++++++++------------------ 2 files changed, 25 insertions(+), 62 deletions(-) diff --git a/src/cas/generic/casEventSys.cc b/src/cas/generic/casEventSys.cc index 1247e9070..7f4f08edd 100644 --- a/src/cas/generic/casEventSys.cc +++ b/src/cas/generic/casEventSys.cc @@ -26,37 +26,6 @@ * Advanced Photon Source * Argonne National Laboratory * - * - * History - * $Log$ - * Revision 1.9 1999/04/30 15:33:46 jhill - * better message - * - * Revision 1.8 1998/07/23 16:48:15 jhill - * eventsOff is no longere a private member - * - * Revision 1.7 1998/07/08 15:38:04 jhill - * fixed lost monitors during flow control problem - * - * Revision 1.6 1997/06/30 22:54:27 jhill - * use %p with pointers - * - * Revision 1.5 1997/04/10 19:34:09 jhill - * API changes - * - * Revision 1.4 1996/11/02 00:54:12 jhill - * many improvements - * - * Revision 1.3 1996/09/16 18:24:01 jhill - * vxWorks port changes - * - * Revision 1.2 1996/07/24 22:00:49 jhill - * added pushOnToEventQueue() - * - * Revision 1.1.1.1 1996/06/20 00:28:15 jhill - * ca server installation - * - * */ /* diff --git a/src/cas/generic/casEventSysIL.h b/src/cas/generic/casEventSysIL.h index cd137eca6..eda5e2b9e 100644 --- a/src/cas/generic/casEventSysIL.h +++ b/src/cas/generic/casEventSysIL.h @@ -27,30 +27,6 @@ * Argonne National Laboratory * * - * History - * $Log$ - * Revision 1.7 1998/07/08 15:38:05 jhill - * fixed lost monitors during flow control problem - * - * Revision 1.6 1998/02/18 22:45:29 jhill - * fixed warning - * - * Revision 1.5 1997/08/05 00:47:09 jhill - * fixed warnings - * - * Revision 1.4 1997/04/10 19:34:09 jhill - * API changes - * - * Revision 1.3 1996/11/02 00:54:13 jhill - * many improvements - * - * Revision 1.2 1996/09/16 18:24:02 jhill - * vxWorks port changes - * - * Revision 1.1.1.1 1996/06/20 00:28:16 jhill - * ca server installation - * - * */ @@ -61,12 +37,14 @@ // casEventSys::casEventSys () // inline casEventSys::casEventSys () : - pPurgeEvent(NULL), - numEventBlocks(0u), - maxLogEntries(individualEventEntries), - destroyPending(aitFalse), - replaceEvents(aitFalse), - dontProcess(aitFalse) + nProcessed (0ul), + nPosted (0ul), + pPurgeEvent (NULL), + numEventBlocks (0u), + maxLogEntries (individualEventEntries), + destroyPending (false), + replaceEvents (false), + dontProcess (false) { } @@ -93,7 +71,7 @@ inline void casEventSys::addToEventQueue(casEvent &event) // inline void casEventSys::setDestroyPending() { - this->destroyPending = aitTrue; + this->destroyPending = true; // // wakes up the event queue consumer // @@ -157,5 +135,21 @@ inline casMonitor *casEventSys::resIdToMon(const caResId id) return (casMonitor *) pRes; } +// +// casEventSys::nEventsProcessed () +// +unsigned long casEventSys::nEventsProcessed () const +{ + return this->nProcessed; +} + +// +// casEventSys::nEventsPosted () +// +unsigned long casEventSys::nEventsPosted () const +{ + return this->nPosted; +} + #endif // casEventSysIL_h