Skip to content

Commit

Permalink
move threadinterrupt.{cpp,h} to util
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythonix committed Dec 7, 2022
1 parent 8acde78 commit 4610d13
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ GRIDCOIN_CORE_H = \
support/cleanse.h \
support/lockedpool.h \
sync.h \
threadinterrupt.h \
threadsafety.h \
tinyformat.h \
txdb.h \
Expand All @@ -200,6 +199,7 @@ GRIDCOIN_CORE_H = \
util/syserror.h \
util/system.h \
util/threadnames.h \
util/threadinterrupt.h \
util/time.h \
util/tokenpipe.h \
util.h \
Expand Down Expand Up @@ -300,14 +300,14 @@ GRIDCOIN_CORE_CPP = addrdb.cpp \
support/cleanse.cpp \
support/lockedpool.cpp \
sync.cpp \
threadinterrupt.cpp \
uint256.cpp \
util/bip32.cpp \
util/settings.cpp \
util/strencodings.cpp \
util/string.cpp \
util/syserror.cpp \
util/system.cpp \
util/threadinterrupt.cpp \
util/threadnames.cpp \
util/time.cpp \
util/tokenpipe.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/threadinterrupt.cpp → src/util/threadinterrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://opensource.org/licenses/mit-license.php.

#include <threadinterrupt.h>
#include <util/threadinterrupt.h>

#include <sync.h>

Expand Down
6 changes: 3 additions & 3 deletions src/threadinterrupt.h → src/util/threadinterrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_THREADINTERRUPT_H
#define BITCOIN_THREADINTERRUPT_H
#ifndef BITCOIN_UTIL_THREADINTERRUPT_H
#define BITCOIN_UTIL_THREADINTERRUPT_H

#include <sync.h>

Expand Down Expand Up @@ -33,4 +33,4 @@ class CThreadInterrupt
std::atomic<bool> flag;
};

#endif //BITCOIN_THREADINTERRUPT_H
#endif // BITCOIN_UTIL_THREADINTERRUPT_H
2 changes: 1 addition & 1 deletion src/util/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include <unordered_map>
#include <sync.h>
#include <threadinterrupt.h>
#include <util/threadinterrupt.h>

using namespace std::chrono_literals;

Expand Down

0 comments on commit 4610d13

Please sign in to comment.