Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/lib/libpthread Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/0556a332af48
branches: netbsd-8
changeset: 434127:0556a332af48
user: snj <snj%NetBSD.org@localhost>
date: Mon Jul 24 05:47:59 2017 +0000
description:
Pull up following revision(s) (requested by kamil in ticket #119):
lib/libpthread/pthread_tsd.c: revision 1.16
PR/52386: Use the number of iterations we document.
diffstat:
lib/libpthread/pthread_tsd.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 047f69ace558 -r 0556a332af48 lib/libpthread/pthread_tsd.c
--- a/lib/libpthread/pthread_tsd.c Mon Jul 24 05:37:58 2017 +0000
+++ b/lib/libpthread/pthread_tsd.c Mon Jul 24 05:47:59 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_tsd.c,v 1.15 2015/08/25 13:46:23 pooka Exp $ */
+/* $NetBSD: pthread_tsd.c,v 1.15.8.1 2017/07/24 05:47:59 snj Exp $ */
/*-
* Copyright (c) 2001, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_tsd.c,v 1.15 2015/08/25 13:46:23 pooka Exp $");
+__RCSID("$NetBSD: pthread_tsd.c,v 1.15.8.1 2017/07/24 05:47:59 snj Exp $");
/* Functions and structures dealing with thread-specific data */
#include <errno.h>
@@ -332,7 +332,8 @@
* a while.''
*/
- iterations = 4; /* We're not required to try very hard */
+ /* We're not required to try very hard */
+ iterations = PTHREAD_DESTRUCTOR_ITERATIONS;
do {
done = 1;
for (i = 0; i < pthread_keys_max; i++) {
@@ -356,7 +357,7 @@
(*destructor)(val);
}
}
- } while (!done && iterations--);
+ } while (!done && --iterations);
self->pt_havespecific = 0;
pthread_mutex_lock(&self->pt_lock);
Home |
Main Index |
Thread Index |
Old Index