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

Method SocketThread

mlx/distributed/ring/ring.cpp:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128class SocketThread {
129 public:
130 SocketThread(int fd) : fd_(fd), stop_(false) {
131 worker_ = std::thread(&SocketThread::worker, this);
132 int flags = fcntl(fd, F_GETFL, 0);
133 fcntl(fd, F_SETFL, flags | O_NONBLOCK);
134 }
135 ~SocketThread() {
136 stop_ = true;
137 condition_.notify_all();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected