summaryrefslogtreecommitdiffstats
path: root/lib/libc/gdtoa
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-06-21 08:20:14 +0000
committerdas <das@FreeBSD.org>2003-06-21 08:20:14 +0000
commit502b55c20b019782171fd4c6c6351ec958baccc6 (patch)
treed851717b2c4ca09e2801c78aeea0be4bbd432fdb /lib/libc/gdtoa
parentd6a3dc0a5923a623809d7bf9f60513fcfcbe0111 (diff)
downloadFreeBSD-src-502b55c20b019782171fd4c6c6351ec958baccc6.zip
FreeBSD-src-502b55c20b019782171fd4c6c6351ec958baccc6.tar.gz
Userland spinlocks bad. Sleep locks good.
Use the latter for gdtoa. Requested by: deischen (far too long ago)
Diffstat (limited to 'lib/libc/gdtoa')
-rw-r--r--lib/libc/gdtoa/glue.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/gdtoa/glue.c b/lib/libc/gdtoa/glue.c
index b587412..39e491a 100644
--- a/lib/libc/gdtoa/glue.c
+++ b/lib/libc/gdtoa/glue.c
@@ -5,6 +5,9 @@
* $FreeBSD$
*/
-#include "spinlock.h"
+#include <pthread.h>
-spinlock_t __gdtoa_locks[2];
+pthread_mutex_t __gdtoa_locks[] = {
+ PTHREAD_MUTEX_INITIALIZER,
+ PTHREAD_MUTEX_INITIALIZER
+};
OpenPOWER on IntegriCloud