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);
|
||
|
}
|
||
|
|