From e23bf66c0d0ba9a322ab99e363d11fb7a302bb96 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 30 Jan 2013 19:48:00 +0000 Subject: QPID-4514: Remove IO start/stop reading primitives used by removed cluster git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1440617 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/windows/AsynchIO.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'cpp/src/qpid/sys/windows/AsynchIO.cpp') diff --git a/cpp/src/qpid/sys/windows/AsynchIO.cpp b/cpp/src/qpid/sys/windows/AsynchIO.cpp index d8aa6efda7..b36ee9f941 100644 --- a/cpp/src/qpid/sys/windows/AsynchIO.cpp +++ b/cpp/src/qpid/sys/windows/AsynchIO.cpp @@ -286,8 +286,6 @@ public: virtual void notifyPendingWrite(); virtual void queueWriteClose(); virtual bool writeQueueEmpty(); - virtual void startReading(); - virtual void stopReading(); virtual void requestCallback(RequestCallback); /** @@ -346,6 +344,12 @@ private: void close(void); + /** + * startReading initiates reading, readComplete() is + * called when the read completes. + */ + void startReading(); + /** * readComplete is called when a read request is complete. * @@ -565,15 +569,6 @@ void AsynchIO::startReading() { return; } -// stopReading was added to prevent a race condition with read-credit on Linux. -// It may or may not be required on windows. -// -// AsynchIOHandler::readbuff() calls stopReading() inside the same -// critical section that protects startReading() in -// AsynchIOHandler::giveReadCredit(). -// -void AsynchIO::stopReading() {} - // Queue the specified callback for invocation from an I/O thread. void AsynchIO::requestCallback(RequestCallback callback) { // This method is generally called from a processing thread; transfer -- cgit v1.2.1