Page MenuHomePhabricator

D3911.id12215.diff
No OneTemporary

D3911.id12215.diff

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 <grpcpp/grpcpp.h>
-
-#include <atomic>
-#include <mutex>
-
-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<ReactorState> state = ReactorState::NONE;
-
- grpc::Status getStatus() {
- const std::unique_lock<std::mutex> lock(this->statusAccessMutex);
- return this->status;
- }
- void setStatus(const grpc::Status &status) {
- const std::unique_lock<std::mutex> 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

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 11:32 PM (20 h, 18 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2507284
Default Alt Text
D3911.id12215.diff (1 KB)

Event Timeline