diff options
author | Seija Kijin <doremylover123@gmail.com> | 2022-12-25 01:41:50 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-25 16:34:03 +0900 |
commit | 0006e2e3f1de6a3a5351da298ee52b5d936addfd (patch) | |
tree | da07bf621f6455a0cb825cde3ff7246fbedd39a7 /commit.c | |
parent | 7c2ef319c52c4997256f5807564523dfd4acdfc7 (diff) |
win32: use _endthreadex to terminate threads, not ExitThread
Because we use the C runtime and
use _beginthreadex to create pthreads,
pthread_exit MUST use _endthreadex.
Otherwise, according to Microsoft:
"Failure to do so results in small
memory leaks when the thread
calls ExitThread."
Simply put, this is not the same as ExitThread.
Signed-off-by: Seija Kijin <doremylover123@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions