This commit is contained in:
rsc 2007-08-10 17:45:49 +00:00
parent 8908cc9b15
commit 15b326b630

View file

@ -38,8 +38,8 @@ getcallerpcs(void *v, uint pcs[])
// Acquire the lock. // Acquire the lock.
// Loops (spins) until the lock is acquired. // Loops (spins) until the lock is acquired.
// (Because contention is handled by spinning, must not // (Because contention is handled by spinning,
// go to sleep holding any locks.) // must not go to sleep holding any locks.)
void void
acquire(struct spinlock *lock) acquire(struct spinlock *lock)
{ {