Skip to content

Commit

Permalink
use atomic stop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Sep 18, 2018
1 parent a3fb784 commit 638b206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AnalysisFW/interface/TFClientRemote.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <condition_variable>
#include <mutex>
#include <thread>
#include <atomic>

#include "grpc++/create_channel.h"
#include "tensorflow_serving/apis/prediction_service.grpc.pb.h"
Expand All @@ -35,7 +36,7 @@ class JetImageData {
private:
void waitForNext();

bool stop_;
std::atomic<bool> stop_;
std::unique_ptr<std::thread> thread_;
};

Expand Down

0 comments on commit 638b206

Please sign in to comment.