From a04d40082ca802a66efce25bf4c1eed87e52a436 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 20 Sep 2001 17:38:04 +0000 Subject: [PATCH] fixed put notify blocking bug and put notify type mapping bug --- src/db/dbPutNotifyBlocker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/db/dbPutNotifyBlocker.cpp b/src/db/dbPutNotifyBlocker.cpp index 2348a6926..a9c067ecc 100644 --- a/src/db/dbPutNotifyBlocker.cpp +++ b/src/db/dbPutNotifyBlocker.cpp @@ -112,13 +112,13 @@ void dbPutNotifyBlocker::initiatePutNotify ( epicsMutex &mutex, cacWriteNotify & epicsTime begin; bool beginTimeInit = false; while ( true ) { - if ( this->pNotify ) { - this->pNotify = ¬ify; + if ( this->pNotify == 0 ) { + this->pNotify = & notify; break; } if ( beginTimeInit ) { if ( epicsTime::getCurrent () - begin > 30.0 ) { - throw -1; + throw cacChannel::requestTimedOut (); } } else { @@ -139,7 +139,7 @@ void dbPutNotifyBlocker::initiatePutNotify ( epicsMutex &mutex, cacWriteNotify & throw cacChannel::badType(); } - status = this->pn.dbrType = dbPutNotifyMapType ( + status = dbPutNotifyMapType ( &this->pn, static_cast ( type ) ); if ( status ) { memset ( &this->pn, '\0', sizeof ( this->pn ) );