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

Method ~SocketThread

mlx/distributed/ring/ring.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 fcntl(fd, F_SETFL, flags | O_NONBLOCK);
134 }
135 ~SocketThread() {
136 stop_ = true;
137 condition_.notify_all();
138 worker_.join();
139 int flags = fcntl(fd_, F_GETFL, 0);
140 fcntl(fd_, F_SETFL, flags & ~O_NONBLOCK);
141 }
142
143 template <typename T>
144 std::future<void> send(const T* buffer, size_t size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected