Double lock on wxMutex(wxMUTEX_DEFAULT) allowed?

Vadim Zeitlin vadim at wxwidgets.org
Tue Oct 2 04:30:36 PDT 2007


On Tue, 02 Oct 2007 10:08:25 +0200 Koen Vermeer <koen at vermeer.tv> wrote:

KV> I see. The way I read the documentation, it says that a wxMutex is not
KV> recursive by default. I cannot find any comment on wxMSW specific
KV> behavior.

 I've added it now.

KV> The documentation also says:
KV> 
KV> The reason for this is that recursive mutexes are not supported by all
KV> Unix flavours and, worse, they cannot be used with wxCondition.
KV> 
KV> Does this mean that wxCondition isn't working as expected on wxMSW?

 No, it has a completely different implementation under MSW and is not
affected by this.

KV> Then, the next question is obviously how to work around this.

 If you mean how to work around Win32 mutexes always being recursive, then
I don't know.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list