wxCondition locking

Fabian Cenedese Cenedese at indel.ch
Fri Jan 18 06:55:23 PST 2008


At 06:26 18.01.2008 -0800, you wrote:

>Hi, I have a wxCondition with an associated wxMutex. Is it correct to
>
>lock mutex
>signal condition
>unlock mutex
>
>and
>
>lock mutex
>wait on condition
>unlock mutex
>
>Or is this not the right sequence to make sure no signals are missed?

I'd say you either need to check the condition (not wait for it) or leave
out the mutex around the wait. Otherwise nobody would be able to
signal it anymore -> deadlock.

bye  Fabi




More information about the wx-users mailing list