From b7b1a82472cb4cc68a903a6a1cfd57262f2469f4 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 7 Sep 2000 01:25:04 +0000 Subject: [PATCH] fixed potential race condition --- src/ca/tcpiiu_IL.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ca/tcpiiu_IL.h b/src/ca/tcpiiu_IL.h index 55117a17b..2be897fa2 100644 --- a/src/ca/tcpiiu_IL.h +++ b/src/ca/tcpiiu_IL.h @@ -56,7 +56,9 @@ inline SOCKET tcpiiu::getSock () const inline void tcpiiu::flush () { + this->lock (); this->flushPending = true; + this->unlock (); semBinaryGive ( this->sendThreadFlushSignal ); }