Boost logo

Boost :

From: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2008-02-07 11:18:46


On Feb 6, 2008 9:22 PM, Clark Sims <clark_sims_boost_at_[hidden]> wrote:

> I would like it to deadlock on windows,

As others have said, the windows critical section is recursive (and very
lightweight). If you need non-recursive behavior, try CreateMutex().
http://msdn2.microsoft.com/en-us/library/ms682411(VS.85).aspx

Check out the wxMutex impl in wxWidgets for one example (not great), which I
*think* uses this call. If you extract the src, you can find it in:
wxWidgets-2.8.6/src/msw/thread.cpp

Jon


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