10#ifndef MCRL2_UTILITIES_SPINLOCK_H_
11#define MCRL2_UTILITIES_SPINLOCK_H_
28 while (
m_flag.test_and_set()) {};
35 return m_flag.test_and_set();
Implements a very simple spinlock.
bool try_lock()
Tries to lock the spinlock, but also returns immediately.
void lock()
Busy waits until the lock is unlocked.
void unlock()
Frees the lock.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...