OpenBSD, thanks to Tim Wiess
This commit is contained in:
parent
6a73f8b6c1
commit
fe8c925e8a
9 changed files with 353 additions and 57 deletions
|
|
@ -90,6 +90,14 @@ _spinlock(spinlock_t *lk)
|
|||
lock((Lock*)&lk->access_lock);
|
||||
}
|
||||
|
||||
void
|
||||
_spinunlock(spinlock_t *lk)
|
||||
{
|
||||
unlock((Lock*)&lk->access_lock);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* sleep and wakeup
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue