OpenBSD, thanks to Tim Wiess

This commit is contained in:
rsc 2005-07-21 18:29:04 +00:00
parent 6a73f8b6c1
commit fe8c925e8a
9 changed files with 353 additions and 57 deletions

View file

@ -2,3 +2,21 @@
#include "BSD.c"
static spinlock_t mlock = { 0, 0, NULL, 0 };
void
_thread_malloc_lock(void)
{
_spinlock(&mlock);
}
void
_thread_malloc_unlock(void)
{
_spinunlock(&mlock);
}
void
_thread_malloc_init(void)
{
}