Go to the source code of this file.
- Copyright
- (c) 2014-2024 This file is distributed under the MIT License. See LICENSE.md for details.
◆ spinlock_init()
Initialize the spinlock.
- Parameters
-
spinlock | The spinlock we initialize. |
◆ spinlock_lock()
Try to lock the spinlock.
- Parameters
-
spinlock | The spinlock we lock. |
◆ spinlock_trylock()
Try to unlock the spinlock.
- Parameters
-
spinlock | The spinlock we try to block. |
- Returns
- 1 if succeeded, 0 otherwise.
◆ spinlock_unlock()
Try to unlock the spinlock.
- Parameters
-
spinlock | The spinlock we unlock. |