major revisions

This commit is contained in:
Jeff Hill
2000-04-28 01:29:00 +00:00
parent 68c049fa73
commit 547f1b15fa
56 changed files with 8019 additions and 7241 deletions

60
src/ca/cacNotify.cpp Normal file
View File

@@ -0,0 +1,60 @@
/* $Id$
*
* L O S A L A M O S
* Los Alamos National Laboratory
* Los Alamos, New Mexico 87545
*
* Copyright, 1986, The Regents of the University of California.
*
* Author: Jeff Hill
*/
#include "iocinf.h"
osiMutex cacNotify::defaultMutex;
cacNotify::cacNotify () : pIO (0)
{
}
cacNotify::~cacNotify ()
{
cacNotifyIO *pTmpIO = this->pIO;
if ( pTmpIO ) {
this->pIO = 0;
pTmpIO->destroy ();
}
}
cacNotify::lock ()
{
this->defaultMutex.lock ();
}
cacNotify::unlock ()
{
this->defaultMutex.unlock ();
}
void cacNotify::completionNotify ()
{
ca_printf ("CAC: IO completion with no handler installed?\n");
}
void cacNotify::completionNotify ( unsigned type, unsigned long count, const void *pData )
{
ca_printf ("IO completion with no handler installed? type=%u count=%u data pointer=%p\n",
type, count, pData);
}
void cacNotify::exceptionNotify ( int status, const char *pContext )
{
ca_signal (status, pContext);
}
void cacNotify::exceptionNotify ( int status, const char *pContext, unsigned type, unsigned long count )
{
ca_signal_formated (status, __FILE__, __LINE__, "%s type=%d count=%ld\n",
pContext, type, count);
}