diff options
author | Benoit Steiner <bsteiner@google.com> | 2016-11-28 11:21:53 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-11-28 11:42:52 -0800 |
commit | 74b312d4df0a2c8283bdf05559803f49bc38dbe0 (patch) | |
tree | c3e71543b1c7652a6bf3c11623fbcbbfcfca16cd /tensorflow/cc/training | |
parent | 4bc1d1cece4df20fdd56303276c637df97dcbeb7 (diff) |
Made the QueueRunner::Stop method public.
Change: 140380090
Diffstat (limited to 'tensorflow/cc/training')
-rw-r--r-- | tensorflow/cc/training/queue_runner.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tensorflow/cc/training/queue_runner.h b/tensorflow/cc/training/queue_runner.h index 273eb39671..50213fa81b 100644 --- a/tensorflow/cc/training/queue_runner.h +++ b/tensorflow/cc/training/queue_runner.h @@ -56,6 +56,11 @@ class QueueRunner : public RunnerInterface { // specified time (in milliseconds) for the queues to start to fill up. Status Start(Session* sess, int wait_for_ms); + // Requests to stop and runs the cancel op. It would be called in a separate + // thread when coordinator is set. If there is no coordinator it should be + // called before calling Join. + void Stop(Session* sess); + // Joins all the threads. Returns okay if all threads run successfully; // otherwise returns the first captured failure status. Status Join() final; @@ -72,10 +77,6 @@ class QueueRunner : public RunnerInterface { // The Run function for each thread. void Run(Session* sess, const string& enqueue_op); - // Requests to stop and runs the cancel op. It would be called in a separate - // thread when coordinator is set. - void Stop(Session* sess); - // Updates the internal status; it only keeps OK or the first unexpected error // status. void UpdateStatus(const Status& status); |