#include <spinlock.h>
Public Member Functions | |
| void | init () |
| void | lock () |
| bool | try_lock () |
| void | unlock () |
Protected Attributes | |
| bool | locked |
Since multiple processors are not currently supported, spinlocks are not used yet.
|
|
|
|
|
Lock this spinlock. If it's already locked, busywait until it's available.
|
|
|
Attempt to lock this spinlock without busywaiting. Return true on success and false otherwise. |
|
|
|
|
|
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman