From 1de8dc42f6aa6fde0c3d8bc84b2ff3f8acb0f44f Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 5 Feb 1998 23:03:39 +0000 Subject: [PATCH] hp comiler workaround changes --- src/cas/generic/st/ioBlocked.cc | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/cas/generic/st/ioBlocked.cc b/src/cas/generic/st/ioBlocked.cc index 0608afcf9..d47351dc5 100644 --- a/src/cas/generic/st/ioBlocked.cc +++ b/src/cas/generic/st/ioBlocked.cc @@ -7,6 +7,9 @@ // (for single threaded version of the server) // // $Log$ +// Revision 1.3 1997/06/13 09:16:10 jhill +// connect proto changes +// // Revision 1.2 1997/04/10 19:34:32 jhill // API changes // @@ -74,13 +77,18 @@ ioBlockedList::~ioBlockedList () // void ioBlockedList::signal() { - tsDLList tmp(*this); - ioBlocked *pB; + tsDLList tmp; + ioBlocked *pB; - while ( (pB = tmp.get ()) ) { - pB->pList = NULL; - pB->ioBlockedSignal (); - } + // + // move all of the items onto tmp + // + tmp.add(*this); + + while ( (pB = tmp.get ()) ) { + pB->pList = NULL; + pB->ioBlockedSignal (); + } } // @@ -88,10 +96,10 @@ void ioBlockedList::signal() // void ioBlockedList::removeItemFromIOBLockedList(ioBlocked &item) { - if (item.pList==this) { - this->remove(item); - item.pList = NULL; - } + if (item.pList==this) { + this->remove(item); + item.pList = NULL; + } } //