GemaCoreLib
The GeMA Core library
Classes
gmSpinLock.h File Reference

Declaration of the GmSpinLock class. More...

#include <QAtomicInteger>
Include dependency graph for gmSpinLock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GmSpinLock
 A simple spin lock implementation based on a loop using test and set over an atomic int to change its value from 0 to 1. More...
 
class  GmSpinLocker
 RAII object used to acquire a spin lock and release it upon object destruction. More...
 

Detailed Description

Declaration of the GmSpinLock class.

Author
Carlos Augusto Teixeira Mendes
Date
march, 2020