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

Method finish_background_tasks

mlx/data/stream/Buffered.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Buffered::finish_background_tasks() {
100 {
101 std::unique_lock lock(pool_mutex_);
102 pool_is_alive_ = false;
103 }
104 pool_ = nullptr;
105}
106
107Buffered::~Buffered() {
108 finish_background_tasks();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected