summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thread_malloc_lock.c
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2002-11-03 20:36:43 +0000
committermarc <marc@openbsd.org>2002-11-03 20:36:43 +0000
commit7d696152b04eda612deebda7dd931656647baf68 (patch)
treec8d6614acef79d09c5a8c85d3b59a6535a731ded /lib/libpthread/thread/thread_malloc_lock.c
parentYou can't always cast pointer to int on because the sizes are (diff)
downloadwireguard-openbsd-7d696152b04eda612deebda7dd931656647baf68.tar.xz
wireguard-openbsd-7d696152b04eda612deebda7dd931656647baf68.zip
libc changes for thread safety. Tested on:
alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
Diffstat (limited to 'lib/libpthread/thread/thread_malloc_lock.c')
-rw-r--r--lib/libpthread/thread/thread_malloc_lock.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thread_malloc_lock.c b/lib/libpthread/thread/thread_malloc_lock.c
index 68f899983cb..229973d7e89 100644
--- a/lib/libpthread/thread/thread_malloc_lock.c
+++ b/lib/libpthread/thread/thread_malloc_lock.c
@@ -1,7 +1,8 @@
+/* $OpenBSD: thread_malloc_lock.c,v 1.2 2002/11/03 20:36:43 marc Exp $ */
+/* Public Domain <marc@snafu.org> */
+
#include <pthread.h>
#include "pthread_private.h"
-#include "thread_private.h"
-#include "spinlock.h"
static spinlock_t malloc_lock = _SPINLOCK_INITIALIZER;
@@ -16,3 +17,8 @@ _thread_malloc_unlock()
{
_SPINUNLOCK(&malloc_lock);
}
+
+void
+_thread_malloc_init()
+{
+}