Opened 18 years ago

Closed 15 years ago

#323 closed Feature Requests (wontfix)

protection against spurious wakeups?

Reported by: elfring Owned by: Roland Schwarz
Milestone: Component: thread
Version: None Severity: Showstopper
Keywords: Cc:

Description

Will your library be safe in this aspect?
http://boost.org/doc/html/threads/design.html#id617110

Would you like to use anything from the discussion on this topic?
http://groups.google.de/groups?threadm=40ed1d8f.0411191313.4dff837c@posting.google.com

Change History (3)

comment:1 by Roland Schwarz, 16 years ago

Logged In: YES 
user_id=541730

Spurious wakeups are not considered to be wrong.
Use a loop around the wait to recheck the condition.

comment:2 by elfring, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=572001

I imagine that this loop can be encapsulated in a (template)
class. I am interested in a little service so it can not be
forgotten.

Please document this detail and check the link "Strategies
for Implementing POSIX Condition Variables on Win32" on the
page
"http://boost.org/doc/html/threads.html#threads.bibliography".

A design without spurious wakeups is available by an other
library.
http://zthread.sourceforge.net/html/classZThread_1_1Condition.html

comment:3 by Anthony Williams, 15 years ago

Resolution: Laterwontfix
Severity: Showstopper
Status: assignedclosed
Note: See TracTickets for help on using tickets.