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

Method ProducerWait

dali/operators/reader/reader_op.h:384–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 }
383
384 void ProducerWait() {
385 std::unique_lock<std::mutex> lock(prefetch_access_mutex_);
386 producer_.wait(lock, [&]() { return finished_ || !IsPrefetchQueueFull(); });
387 }
388
389 void ConsumerWait() {
390 DomainTimeRange tr("[DALI][DataReader] ConsumerWait #" + to_string(curr_batch_consumer_),

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected