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

Method pop

dali/util/thread_safe_queue.h:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 T pop() {
38 std::unique_lock<std::mutex> lock{lock_};
39 cond_.wait(lock, [&](){return !queue_.empty() || interrupt_;});
40 if (interrupt_) {
41 return {};
42 }
43 T item = std::move(queue_.front());
44 queue_.pop();
45 return item;
46 }
47
48 const T& peek() {
49 return front();

Callers 15

GetReadWorkMethod · 0.45
AddMethod · 0.45
HandlePictureDisplayMethod · 0.45
SendLastPacketMethod · 0.45
read_fileMethod · 0.45
handle_display_Method · 0.45
receive_framesMethod · 0.45
PopUnlockAndRunTaskMethod · 0.45
__next__Method · 0.45
test_condition_stackFunction · 0.45
list_popMethod · 0.45

Calls 3

waitMethod · 0.45
emptyMethod · 0.45
frontMethod · 0.45

Tested by 8

__next__Method · 0.36
test_condition_stackFunction · 0.36
list_popMethod · 0.36
fMethod · 0.36
iterator_wrapperMethod · 0.36
_build_dali_random_cropFunction · 0.36