From 78239fb2136d60d97c57fdb597a35ab3efdda06e Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 15 Oct 2001 21:46:42 +0000 Subject: [PATCH] changed oldCAC from class to struct --- src/ca/oldAccess.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ca/oldAccess.h b/src/ca/oldAccess.h index 87408d3d2..67671d484 100644 --- a/src/ca/oldAccess.h +++ b/src/ca/oldAccess.h @@ -29,7 +29,7 @@ struct oldChannelNotify : public cacChannelNotify { public: - oldChannelNotify ( class oldCAC &, const char *pName, + oldChannelNotify ( struct oldCAC &, const char *pName, caCh *pConnCallBackIn, void *pPrivateIn, capri priority ); void destroy (); void setPrivatePointer ( void * ); @@ -183,7 +183,7 @@ private: static epicsMutex freeListMutex; }; -class oldCAC : public cacNotify +struct oldCAC : public cacNotify { public: oldCAC ( bool enablePreemptiveCallback = false ); @@ -218,6 +218,7 @@ public: int vPrintf ( const char *pformat, va_list args ) const; void vSignal ( int ca_status, const char *pfilenm, int lineno, const char *pFormat, va_list args ); + bool preemptiveCallbakIsEnabled () const; private: mutable epicsMutex mutex; cac & clientCtx; @@ -511,4 +512,9 @@ inline void oldCAC::selfTest () this->clientCtx.selfTest (); } +inline bool oldCAC::preemptiveCallbakIsEnabled () const +{ + return this->clientCtx.preemptiveCallbakIsEnabled (); +} + #endif // ifndef oldAccessh