vlc_detach: releases a thread handle asynchronously
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 1 Aug 2009 20:59:41 +0000 (23:59 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 2 Aug 2009 06:27:13 +0000 (09:27 +0300)
commit6cecd8ecf80090d4818c5aa4a9e9f00d15d982c2
tree6f8066e024b68433714d8aa137081f23b83898e1
parentf18b184824b0b2cbef6df1569d36f1a56d6d7c92
vlc_detach: releases a thread handle asynchronously

Note that this can only be used safely in the core. In a plug-in, it
would introduce a race whereby dlclose() unmaps the code segment that
a detached thread is running (this was discussed over a year ago).
For that, we'd need something a bit more involved along the lines of
Win32's FreeLibraryAndExitThread().
src/libvlc.h
src/misc/pthread.c
src/misc/w32thread.c