Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold committed May 15, 2018
1 parent e3f7dfe commit 4c1c1f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/engine/threaded_engine_pooled.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class ThreadedEnginePooled : public ThreadedEngine {
task_queue_->SignalForKill();
task_queue_ = nullptr;
io_task_queue_->SignalForKill();
io_task_queue = nullptr;
thread_pool_.reset(nullptr);
io_thread_pool = nullptr;
io_task_queue_ = nullptr;
thread_pool_ = nullptr;
io_thread_pool_ = nullptr;
}

void Stop() override {
Expand Down
4 changes: 2 additions & 2 deletions tests/cpp/engine/threaded_engine_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ TEST(Engine, start_stop) {
engine[2] = mxnet::engine::CreateThreadedEnginePerDevice();

for (int i = 0; i < num_engine; ++i) {
engine[i].stop();
engine[i].start();
engine[i]->Stop();
engine[i]->Start();
}
}

Expand Down

0 comments on commit 4c1c1f3

Please sign in to comment.