diff --git a/services/blob/src/Reactors/ReactorUtility.h b/services/blob/src/Reactors/ReactorUtility.h deleted file mode 100644 --- a/services/blob/src/Reactors/ReactorUtility.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#include - -#include -#include - -namespace comm { -namespace network { -namespace reactor { - -enum class ReactorState { - NONE = 0, - RUNNING = 1, - TERMINATED = 2, - DONE = 3, -}; - -class ReactorUtility { -private: - grpc::Status status = grpc::Status::OK; - std::mutex statusAccessMutex; - -public: - std::atomic state = ReactorState::NONE; - - grpc::Status getStatus() { - const std::unique_lock lock(this->statusAccessMutex); - return this->status; - } - void setStatus(const grpc::Status &status) { - const std::unique_lock lock(this->statusAccessMutex); - this->status = status; - } -}; - -} // namespace reactor -} // namespace network -} // namespace comm diff --git a/services/backup/src/Reactors/ReactorUtility.h b/services/lib/lib_src/ReactorUtility.h rename from services/backup/src/Reactors/ReactorUtility.h rename to services/lib/lib_src/ReactorUtility.h