Boost logo

Boost :

Subject: Re: [boost] [threads] API Design Question
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-02-05 14:26:32


----- Original Message -----
From: "Alexander Bernauer" <alex_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, February 05, 2009 12:56 PM
Subject: Re: [boost] [threads] API Design Question

> On the other hand those flags/counters are a safe way to solve the
> spurious wakeup problem in general. So why not having the library doing
> the job? Not to mention the fact that spurious wakeups are a very hard
> to detect bug in case one forgets to loop or - even worse - there is a
> bug in the loop condition.

Hi,

could you explain how your design helps to debug a bug in the loop condition?

Vicente


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