merged cleanup
This commit is contained in:
@ -9,17 +9,17 @@
|
||||
* Autor: Michael Schoettner, 2.2.2018 *
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef __SpinLock_include__
|
||||
#define __SpinLock_include__
|
||||
#ifndef SpinLock_include__
|
||||
#define SpinLock_include__
|
||||
|
||||
class SpinLock {
|
||||
private:
|
||||
SpinLock(const SpinLock& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
unsigned long lock;
|
||||
unsigned long* ptr;
|
||||
|
||||
public:
|
||||
SpinLock(const SpinLock& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
SpinLock() : lock(0), ptr(&lock) {}
|
||||
|
||||
void acquire();
|
||||
|
||||
Reference in New Issue
Block a user