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

@ -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
*/