
7 Feb
2008
7 Feb
'08
4:18 p.m.
On Feb 6, 2008 9:22 PM, Clark Sims <clark_sims_boost@yahoo.com> 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