]> git.sesse.net Git - vlc/commit
Win32: rework mutex/condition implementation.
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 7 Sep 2008 17:21:41 +0000 (20:21 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 7 Sep 2008 17:26:33 +0000 (20:26 +0300)
commitcbea1a49e6129f849d827a7cd4f5e45054d88864
treeaef27f55933422c0f369ee4c4955dd74c1ffcd09
parent0f58689cb81d5ab078e40f510a3ef55d6650f6b6
Win32: rework mutex/condition implementation.

Get rid of unsafe PulseEvent().
Fix recursive mutex implementation (hopefully).
Use critical section (fast non-shared/intra-process mutexes)
 rather than mutex handle (slow shared/inter-process mutexes) [1].
Do not rely on unspecified locking when SignalObjectAndWait is alerted.
Real vlc_cond_broadcast() support (hopefully).

[1] should also merge the WinCE support with WinNT.
include/vlc_threads.h
src/misc/threads.c