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

Method _wait_for_samples

dali/python/nvidia/dali/_multiproc/shared_queue.py:95–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 return recv
94
95 def _wait_for_samples(self):
96 waited = False
97 self._read_meta()
98 while not self.meta.size > 0 and not self.meta.is_closed:
99 self.cv_not_empty.wait()
100 waited = True
101 self._read_meta()
102 return waited
103
104 def open_shm(self, handle, close_handle=True):
105 try:

Callers 1

getMethod · 0.95

Calls 2

_read_metaMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected