Boost logo

Boost :

Subject: Re: [boost] Mutexes claim a Windows event handle
From: David Abrahams (dave_at_[hidden])
Date: 2010-06-01 10:54:36


At Tue, 01 Jun 2010 07:42:27 +0100,
Anthony Williams wrote:
> Richard Peters wrote:
> > I could understand if a recursive_mutex costs a handle, except that in
> > boost 1.34 they didn't so I wonder if this was an accident or a
> > deliberate change. And most important: Is there a way to get the same
> > behavior as in 1.34 where a mutex did not cost me one handle each?
>
> No, there is not.
>
> Why do you need so many mutexes?

Yeah, as a threading non-expert but somewhat educated bystander, what
Richard described smells like a design with many locks at object
granularity, which is almost always a mistake. Have you considered
revisiting the architecture?

-- 
Dave Abrahams           Meet me at BoostCon: http://www.boostcon.com
BoostPro Computing
http://www.boostpro.com

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