safer version of dbPutNotify

This commit is contained in:
Marty Kraimer
2004-12-02 16:52:53 +00:00
parent 3f3c33e159
commit c6ee0cf8d3
3 changed files with 194 additions and 145 deletions

View File

@@ -49,14 +49,13 @@ dbPutNotifyBlocker::dbPutNotifyBlocker ( epicsMutex & mutexIn ) :
mutex ( mutexIn ), pNotify ( 0 ),
maxValueSize ( sizeof ( this->dbrScalarValue ) )
{
::putNotifyInit(& this->pn);
memset ( & this->pn, '\0', sizeof ( this->pn ) );
memset ( & this->dbrScalarValue, '\0', sizeof ( this->dbrScalarValue ) );
this->pn.pbuffer = & this->dbrScalarValue;
}
dbPutNotifyBlocker::~dbPutNotifyBlocker ()
{
::putNotifyCleanup(& this->pn);
}
void dbPutNotifyBlocker::destructor ( epicsGuard < epicsMutex > & guard )