From 0f1f25a2b760b5182ea42bf70127cf544aa1f157 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 10 Nov 1999 22:49:35 +0000 Subject: [PATCH] cosmetic --- src/cas/generic/st/ioBlocked.cc | 92 ++++++++++++++------------------- 1 file changed, 39 insertions(+), 53 deletions(-) diff --git a/src/cas/generic/st/ioBlocked.cc b/src/cas/generic/st/ioBlocked.cc index 9d3aa6590..eed75a7fe 100644 --- a/src/cas/generic/st/ioBlocked.cc +++ b/src/cas/generic/st/ioBlocked.cc @@ -6,20 +6,6 @@ // IO Blocked list class // (for single threaded version of the server) // -// $Log$ -// Revision 1.4 1998/02/05 23:03:39 jhill -// hp comiler workaround changes -// -// 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 -// -// Revision 1.1 1996/11/02 01:01:34 jhill -// installed -// -// #include @@ -28,17 +14,17 @@ // -// ioBlocked::ioBlocked() +// ioBlocked::ioBlocked () // -ioBlocked::ioBlocked() : +ioBlocked::ioBlocked () : pList(NULL) { } // -// ioBlocked::~ioBlocked() +// ioBlocked::~ioBlocked () // -ioBlocked::~ioBlocked() +ioBlocked::~ioBlocked () { } @@ -54,59 +40,59 @@ ioBlockedList::ioBlockedList () // ioBlockedList::~ioBlockedList () { - ioBlocked *pB; - - while ( (pB = this->get ()) ) { - pB->pList = NULL; - } + ioBlocked *pB; + + while ( (pB = this->get ()) ) { + pB->pList = NULL; + } } // -// ioBlockedList::signal() +// ioBlockedList::signal () // // works from a temporary list to avoid problems // where the virtual function adds items to the // list // -void ioBlockedList::signal() +void ioBlockedList::signal () { - tsDLList tmp; - ioBlocked *pB; - - // - // move all of the items onto tmp - // - tmp.add(*this); - - while ( (pB = tmp.get ()) ) { - pB->pList = NULL; - pB->ioBlockedSignal (); - } + tsDLList tmp; + ioBlocked *pB; + + // + // move all of the items onto tmp + // + tmp.add(*this); + + while ( (pB = tmp.get ()) ) { + pB->pList = NULL; + pB->ioBlockedSignal (); + } } // -// ioBlockedList::removeItemFromIOBLockedList() +// ioBlockedList::removeItemFromIOBLockedList () // -void ioBlockedList::removeItemFromIOBLockedList(ioBlocked &item) +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; + } } - + // -// ioBlockedList::addItemToIOBLockedList() +// ioBlockedList::addItemToIOBLockedList () // -void ioBlockedList::addItemToIOBLockedList(ioBlocked &item) +void ioBlockedList::addItemToIOBLockedList (ioBlocked &item) { - if (item.pList==NULL) { - this->add(item); - item.pList = this; - } - else { - assert(item.pList == this); - } + if (item.pList==NULL) { + this->add (item); + item.pList = this; + } + else { + assert (item.pList == this); + } }