forked from pool/mingw64-winpthreads
2ec72372c0
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=18
17 lines
443 B
Diff
17 lines
443 B
Diff
Index: winpthreads/src/thread.c
|
|
===================================================================
|
|
--- winpthreads.orig/src/thread.c
|
|
+++ winpthreads/src/thread.c
|
|
@@ -295,8 +295,10 @@ push_pthread_mem (_pthread_v *sv)
|
|
memset (sv, 0, sizeof(struct _pthread_v));
|
|
if (pthr_last == NULL)
|
|
pthr_root = pthr_last = sv;
|
|
- else
|
|
+ else {
|
|
pthr_last->next = sv;
|
|
+ pthr_last = sv;
|
|
+ }
|
|
pthread_mutex_unlock (&mtx_pthr_locked);
|
|
}
|
|
|