/* $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 (); } } void cacNotify::lock () { this->defaultMutex.lock (); } void 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 ("CAC: 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); }