Removes atomic_bool from pause.h

this is 99% for triggering CI
develop
Josh Cooper 2022-10-15 22:58:21 -07:00 committed by GitHub
parent 851ff10959
commit fd747525d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

@ -1,7 +1,6 @@
#pragma once
#include <unordered_set>
#include <string>
#include <atomic>
#include <ColorText.h>
namespace DFHack {
@ -11,10 +10,10 @@ namespace DFHack {
{
class Lock
{
std::atomic_bool locked{};
bool locked = false;
public:
const std::string name;
explicit Lock(const char* name) : name(name){ locked = false; }
explicit Lock(const char* name) : name(name){}
virtual ~Lock()= default;
virtual bool isAnyLocked() const = 0;
virtual bool isOnlyLocked() const = 0;