Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/dist/src When using default mutex type...
details: https://anonhg.NetBSD.org/src/rev/2df5a204334a
branches: trunk
changeset: 932768:2df5a204334a
user: joerg <joerg%NetBSD.org@localhost>
date: Fri May 15 14:34:41 2020 +0000
description:
When using default mutex types, don't setup attributes for init.
diffstat:
external/bsd/jemalloc/dist/src/mutex.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 86637e0aed83 -r 2df5a204334a external/bsd/jemalloc/dist/src/mutex.c
--- a/external/bsd/jemalloc/dist/src/mutex.c Fri May 15 14:30:23 2020 +0000
+++ b/external/bsd/jemalloc/dist/src/mutex.c Fri May 15 14:34:41 2020 +0000
@@ -157,6 +157,9 @@
return true;
}
}
+#elif MALLOC_MUTEX_TYPE == PTHREAD_MUTEX_DEFAULT
+ if (pthread_mutex_init(&mutex->lock, NULL) == -1)
+ return true;
#else
pthread_mutexattr_t attr;
Home |
Main Index |
Thread Index |
Old Index