Win32(core): _endthreadex(0) instead of _endthread()
authorErwan Tulou <erwan10@videolan.org>
Wed, 10 Feb 2010 12:15:00 +0000 (13:15 +0100)
committerErwan Tulou <erwan10@videolan.org>
Thu, 10 Jun 2010 21:23:41 +0000 (23:23 +0200)
commit99f71e5a62fdd14b031fdc89f452d873e3509c74
tree3df824fa34e9a38c59c6883a5b0b7f76a4e261a6
parent5a6d423101dae9a3315564c5babdc8ec99509b20
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.
src/win32/thread.c