summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/thread/thread_malloc_lock.c
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2003-01-20 18:14:05 +0000
committermarc <marc@openbsd.org>2003-01-20 18:14:05 +0000
commite1e91d0f1ce8babc2fab5e1aeb47c6ebf1f9bfc7 (patch)
treeee74c566ae49ccdcd1d1271a0f0b9dc64321c130 /lib/libc_r/thread/thread_malloc_lock.c
parentinstall includes from libpthread, not libc_r (diff)
downloadwireguard-openbsd-e1e91d0f1ce8babc2fab5e1aeb47c6ebf1f9bfc7.tar.xz
wireguard-openbsd-e1e91d0f1ce8babc2fab5e1aeb47c6ebf1f9bfc7.zip
bye-bye libc_r sources.
the sources have been moved (with history) to /usr/src/lib/libpthread
Diffstat (limited to 'lib/libc_r/thread/thread_malloc_lock.c')
-rw-r--r--lib/libc_r/thread/thread_malloc_lock.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/libc_r/thread/thread_malloc_lock.c b/lib/libc_r/thread/thread_malloc_lock.c
deleted file mode 100644
index 8755b1dad27..00000000000
--- a/lib/libc_r/thread/thread_malloc_lock.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* $OpenBSD: thread_malloc_lock.c,v 1.4 2002/11/05 22:19:55 marc Exp $ */
-/* Public Domain <marc@snafu.org> */
-
-#include <pthread.h>
-#include "pthread_private.h"
-
-static spinlock_t malloc_lock = _SPINLOCK_INITIALIZER;
-
-void
-_thread_malloc_lock()
-{
- _SPINLOCK(&malloc_lock);
-}
-
-void
-_thread_malloc_unlock()
-{
- _SPINUNLOCK(&malloc_lock);
-}
-
-void
-_thread_malloc_init()
-{
-}