properly shutdown worker service thread (#367)

This commit is contained in:
Robert Nishihara
2016-08-10 16:53:24 -07:00
committed by Philipp Moritz
parent c01ef95d04
commit fbc49410ec
3 changed files with 24 additions and 9 deletions
+1
View File
@@ -114,6 +114,7 @@ class Worker {
const size_t CHUNK_SIZE = 8 * 1024;
std::unique_ptr<Scheduler::Stub> scheduler_stub_;
std::unique_ptr<std::thread> worker_server_thread_;
Server* server_ptr_;
MessageQueue<WorkerMessage*> receive_queue_;
bip::managed_shared_memory segment_;
WorkerId workerid_;