From e1a931c2a11aa768be71d1f9bfca1cb744b1e42b Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 22 Jan 2021 09:33:23 -0500 Subject: [PATCH] cwMutex.h : Added 'spurious wakeup' comments. --- cwMutex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cwMutex.h b/cwMutex.h index 26dc58b..52a8053 100644 --- a/cwMutex.h +++ b/cwMutex.h @@ -18,6 +18,11 @@ namespace cw // If 'lockThenWaitFl' is false then the function assumes the mutex is already locked // and directly waits. If 'lockThenWaitFl' is set and the mutex is not already locked // then the result is undefined. + // + // Note that this function does NOT check for 'spurious wakeups' - when + // the condition var. returns (w/ the mutex locked) even though it was + // not acutally signals. If it matters to the application then it must + // provide this logic. rc_t waitOnCondVar( handle_t h, bool lockThenWaitFl, unsigned timeOutMs ); rc_t signalCondVar( handle_t h);