[vlc-commits] Win32(core): _endthreadex(0) instead of _endthread()
Erwan Tulou
git at videolan.org
Wed Jun 8 18:08:12 CEST 2011
vlc/vlc-1.1 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Wed Feb 10 13:15:00 2010 +0100| [81c01f6f09ffe5e7928bdc38ba87f3e246f341fd] | committer: Rémi Denis-Courmont
Win32(core): _endthreadex(0) instead of _endthread()
According to msdn doc, _endthreadex(0) is to be used when thread is
launched with _beginthreadex().
Note that when returning from the normal path, an implicit _endthreadex is
issued anyway. It is important to be consistent whatever the path, since
those final functions (_endthread, ExitThread, _endthreadex) don't have
the same deallocation policy.
(cherry picked from commit 99f71e5a62fdd14b031fdc89f452d873e3509c74)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=81c01f6f09ffe5e7928bdc38ba87f3e246f341fd
---
src/win32/thread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index dfeed9a..b2e939d 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -698,7 +698,7 @@ void vlc_testcancel (void)
for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next)
p->proc (p->data);
#ifndef UNDER_CE
- _endthread ();
+ _endthreadex(0);
#else
ExitThread(0);
#endif
More information about the vlc-commits
mailing list