aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2020-02-18 08:41:03 -0800
committerMike Buland <eichlan@xagasoft.com>2020-02-18 08:41:03 -0800
commit0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22 (patch)
tree8fe1daf51c94f0063607cad7c0dbff45294effcb
parentdf3af60bb3f65e51b5b9e8340d0c2ad754e29a33 (diff)
downloadlibbu++-0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22.tar.gz
libbu++-0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22.tar.bz2
libbu++-0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22.tar.xz
libbu++-0690dbdf8e57cd148d8b7f7ba56f23d673f7eb22.zip
Minor Bu::Event bugfix.
It was returning the object state version of the set flag, not the threadsafe local copy.
-rw-r--r--src/stable/event.h4
1 files changed, 2 insertions, 2 deletions
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
59 cBlock.wait(); 59 cBlock.wait();
60 bool bRet = bIsSet; 60 bool bRet = bIsSet;
61 cBlock.unlock(); 61 cBlock.unlock();
62 return bIsSet; 62 return bRet;
63 } 63 }
64 64
65 /** 65 /**
@@ -78,7 +78,7 @@ namespace Bu
78 cBlock.wait( nSec, nUSec ); 78 cBlock.wait( nSec, nUSec );
79 bool bRet = bIsSet; 79 bool bRet = bIsSet;
80 cBlock.unlock(); 80 cBlock.unlock();
81 return bIsSet; 81 return bRet;
82 } 82 }
83 83
84 /** 84 /**