367ce900a5
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=20
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);
|
|
}
|
|
|