Luna::SpinLock::lock

void lock()

Locks the spin lock.

This function blocks the current thread until the spin lock is successfully locked. Locking the same spin lock from the same thread twice causes deadlock. Use RecursiveSpinLock if you need to lock the same spin lock multiple times from the same thread.