From d0ca66c2e31b82fea62a1f1ee001c752b3e861e5 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 17 Jun 2004 23:31:30 +0000 Subject: [PATCH] cancel outstanding IO when a channel becomes unresponsive --- src/ca/nciu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ca/nciu.cpp b/src/ca/nciu.cpp index b26ee68cc..2ce963c4d 100644 --- a/src/ca/nciu.cpp +++ b/src/ca/nciu.cpp @@ -175,10 +175,12 @@ void nciu::connect ( unsigned nativeType, } void nciu::unresponsiveCircuitNotify ( - epicsGuard < epicsMutex > & /* cbGuard */, + epicsGuard < epicsMutex > & cbGuard, epicsGuard < epicsMutex > & guard ) { guard.assertIdenticalMutex ( this->cacCtx.mutexRef () ); + this->cacCtx.disconnectAllIO ( cbGuard, guard, + *this, this->eventq ); this->notify().disconnectNotify ( guard ); caAccessRights noRights; this->notify().accessRightsNotify ( guard, noRights );