Boost logo

Boost :

Subject: Re: [boost] [threads] API Design Question
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-02-05 20:11:25


----- Original Message -----
From: "Phil Endecott" <spam_from_boost_dev_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, February 05, 2009 3:25 PM
Subject: Re: [boost] [threads] API Design Question

>> Not to mention the fact that spurious wakeups are a very hard
>> to detect bug in case one forgets to loop
>
> Every instance of waiting on a condition should always be in a loop, or
> use the predicate version of wait.
>

Hi,
I was wondering if there are other specific cases where we need to call wait without testing a condition in a loop. Can someone show them?

Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk