Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2005-09-12 07:46:12


Roland Schwarz <roland.schwarz_at_[hidden]> writes:

> Altough I think I was careful enough, it might well be
> that I made an mistake. Also since the idea is so simple
> and it needs so less code for implementation,
> I am wondering whether someone else came up with
> this solution. I would be very glad if someone could take
> a look at the code and show me its pitfalls.

With your changes to use InterlockedDecrement, it looks good. Off hand, I
can't think of a reason why it would break --- I don't believe it suffers from
deadlocks, lost wakeups, spurious wakeups, or unfairness.

You just need to extend it to work with other mutex types, now.

Anthony

-- 
Anthony Williams
Software Developer
Just Software Solutions Ltd
http://www.justsoftwaresolutions.co.uk

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