diff options
author | 2002-11-03 20:36:43 +0000 | |
---|---|---|
committer | 2002-11-03 20:36:43 +0000 | |
commit | 7d696152b04eda612deebda7dd931656647baf68 (patch) | |
tree | c8d6614acef79d09c5a8c85d3b59a6535a731ded /lib/libpthread/thread/thread_malloc_lock.c | |
parent | You can't always cast pointer to int on because the sizes are (diff) | |
download | wireguard-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.c | 10 |
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() +{ +} |