From 0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 18 Feb 2020 08:41:03 -0800 Subject: Minor Bu::Event bugfix. It was returning the object state version of the set flag, not the threadsafe local copy. --- src/stable/event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/stable/event.h b/src/stable/event.h index f12dc7d..5f3c819 100644 --- a/src/stable/event.h +++ b/src/stable/event.h @@ -59,7 +59,7 @@ namespace Bu cBlock.wait(); bool bRet = bIsSet; cBlock.unlock(); - return bIsSet; + return bRet; } /** @@ -78,7 +78,7 @@ namespace Bu cBlock.wait( nSec, nUSec ); bool bRet = bIsSet; cBlock.unlock(); - return bIsSet; + return bRet; } /** -- cgit v1.2.3