dont hold lock while calling callbacks
This commit is contained in:
@@ -12,66 +12,42 @@
|
||||
|
||||
#include "iocinf.h"
|
||||
#include "oldAccess.h"
|
||||
#include "oldChannelNotify_IL.h"
|
||||
|
||||
tsFreeList < struct oldSubscription, 1024 > oldSubscription::freeList;
|
||||
epicsMutex oldSubscription::freeListMutex;
|
||||
|
||||
oldSubscription::~oldSubscription ()
|
||||
{
|
||||
this->chan.ioCancel ( this->id );
|
||||
}
|
||||
|
||||
// eliminates sun pro warning
|
||||
void oldSubscription::completionNotify ( cacChannelIO &io )
|
||||
{
|
||||
this->cacNotify::completionNotify ( io );
|
||||
}
|
||||
|
||||
void oldSubscription::completionNotify ( cacChannelIO &io,
|
||||
void oldSubscription::completion (
|
||||
unsigned type, unsigned long count, const void *pData)
|
||||
{
|
||||
struct event_handler_args args;
|
||||
|
||||
args.usr = this->pPrivate;
|
||||
args.chid = & io;
|
||||
args.chid = &this->chan;
|
||||
args.type = type;
|
||||
args.count = count;
|
||||
args.status = ECA_NORMAL;
|
||||
args.dbr = pData;
|
||||
( *this->pFunc ) (args);
|
||||
}
|
||||
|
||||
void oldSubscription::exceptionNotify ( cacChannelIO &io,
|
||||
int status, const char * /* pContext */ )
|
||||
{
|
||||
struct event_handler_args args;
|
||||
|
||||
args.usr = this->pPrivate;
|
||||
args.chid = & io;
|
||||
args.type = TYPENOTCONN;
|
||||
args.count = 0;
|
||||
args.status = status;
|
||||
args.dbr = 0;
|
||||
( *this->pFunc ) (args);
|
||||
}
|
||||
|
||||
void oldSubscription::exceptionNotify ( cacChannelIO &io,
|
||||
void oldSubscription::exception (
|
||||
int status, const char * /* pContext */,
|
||||
unsigned type, unsigned long count )
|
||||
{
|
||||
struct event_handler_args args;
|
||||
|
||||
args.usr = this->pPrivate;
|
||||
args.chid = & io;
|
||||
args.chid = &this->chan;
|
||||
args.type = type;
|
||||
args.count = count;
|
||||
args.status = status;
|
||||
args.dbr = 0;
|
||||
( *this->pFunc ) (args);
|
||||
( *this->pFunc ) ( args );
|
||||
}
|
||||
|
||||
void oldSubscription::release ()
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user