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 | The first batch for 2.40 (diff) | |
| download | git-0006e2e3f1de6a3a5351da298ee52b5d936addfd.tar.gz git-0006e2e3f1de6a3a5351da298ee52b5d936addfd.zip | |
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
