xv6-public
xv6-public copied to clipboard
Added trylock
I've added the trylock
and trylocksleep
functions. These functions will just try to unlock the lock once.
What reason do you have that you want this fork to be merged with the main xv6 repository?
It allows for something to attempt to unlock a spinlock once, without having to enter a while loop and wait for it to unlock.