MCPcopy Create free account
hub / github.com/NVIDIA/DALI / StopPrefetchThread

Method StopPrefetchThread

dali/operators/reader/reader_op.h:167–175  ·  view source on GitHub ↗

to be called in destructor

Source from the content-addressed store, hash-verified

165
166 // to be called in destructor
167 void StopPrefetchThread() {
168 ProducerStop();
169 if (prefetch_thread_.joinable()) {
170 producer_.notify_one();
171 // join the prefetch thread and destroy it
172 prefetch_thread_.join();
173 prefetch_thread_ = {};
174 }
175 }
176
177 bool HasContiguousOutputs() const override {
178 return false;

Callers 3

~NumpyReaderGPUMethod · 0.80
~TFRecordReaderMethod · 0.80
SlicePermuteHelperFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected