Replacing wxMutex with wxCriticalSection - what about conditions?

Vadim Zeitlin vadim at wxwindows.org
Fri Dec 1 16:55:32 PST 2006


On 30 Nov 2006 06:19:37 -0800 geleto <geleto at gmail.com> wrote:

g> The problem is - I have many worker threads and when there's a task to
g> do - one of the idle threads is woken up by signaling a condition. But
g> wxCondition requires a mutex.

 Yes, unfortunately you can't use wxCondition with wxCS right now. The
design of wxCS/wxMutex classes is really bad and confusing and should be
redone one of these days but for now you simply have to use wxMutex.

 Regards,
VZ

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





More information about the wx-users mailing list