MCPcopy Create free account
hub / github.com/ml-explore/mlx / ~StreamThread

Method ~StreamThread

mlx/scheduler.h:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 StreamThread() : stop(false), thread(&StreamThread::thread_fn, this) {}
27
28 ~StreamThread() {
29 {
30 std::lock_guard<std::mutex> lk(mtx);
31 stop = true;
32 }
33 cond.notify_one();
34 thread.join();
35 }
36
37 void thread_fn() {
38 while (true) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected