OpenBSD, thanks to Tim Wiess
This commit is contained in:
parent
6a73f8b6c1
commit
fe8c925e8a
9 changed files with 353 additions and 57 deletions
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue