threads: mixing Conditionals with CriticalSection exit code was broken
authorJoakim Plate <elupus@xbmc.org>
Sat, 1 Jun 2013 00:48:56 +0000 (02:48 +0200)
committerJoakim Plate <elupus@ecce.se>
Sat, 1 Jun 2013 00:49:55 +0000 (02:49 +0200)
commitdf90dddce134a426e7dcb56e1c2cd057fb2f6fe5
treee3be88629aee62404b50735e8ed28614f0cb7ea3
parent080e0cfc0c9f3c94327d5456aab3ba1c9adab92e
threads: mixing Conditionals with CriticalSection exit code was broken

If one thread was waiting on a conditional, and another forced an exit
of the controlling mutex, when the conditional woke up, it would have
an invalid lock count associated.
xbmc/threads/Lockables.h
xbmc/threads/platform/pthreads/Condition.h
xbmc/threads/platform/win/Condition.h