Thread cancellation on WinCE
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 25 Nov 2008 13:22:24 +0000 (14:22 +0100)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 25 Nov 2008 16:58:32 +0000 (18:58 +0200)
commitb3eb9ab9bdba36e85d63ca0234cc8e95d2188eed
tree8353d70aa56250e10213cd782433aea48f4db4ee
parentb190a796acd528de06afe921f691c8bbd2de59e7
Thread cancellation on WinCE

This patch adds support for thread cancellation on Windows CE. It
emulates missing functions such as WaitForSingleObjectEx, by creating
a cancellation event handle, and forwarding the wait functions to wait
on both the original handles and the cancellation event. The thread can
then be cancelled by triggering the event from another thread.

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
include/vlc_threads.h
src/misc/mtime.c
src/misc/threads.c