MCPcopy Create free account
hub / github.com/alibaba/zvec / stop

Method stop

src/include/zvec/ailego/parallel/thread_queue.h:98–103  ·  view source on GitHub ↗

Notify thread stopped

Source from the content-addressed store, hash-verified

96
97 //! Notify thread stopped
98 void stop() {
99 // Set stop flag as ture, then wake the thread
100 stopping_ = true;
101 std::lock_guard<std::mutex> lock(mutex_);
102 cond_.notify_one();
103 }
104
105 protected:
106 //! Thread worker callback

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected