MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _try_shutdown

Method _try_shutdown

monai/data/dataset.py:1191–1203  ·  view source on GitHub ↗

Wait for thread lock to shut down the background thread.

(self)

Source from the content-addressed store, hash-verified

1189 time.sleep(0.01)
1190
1191 def _try_shutdown(self):
1192 """
1193 Wait for thread lock to shut down the background thread.
1194
1195 """
1196 with self._update_lock:
1197 if self._replace_done:
1198 self._round = 0
1199 self._start_pos = 0
1200 self._compute_data_idx()
1201 self._replace_done = False
1202 return True
1203 return False
1204
1205 def shutdown(self):
1206 """

Callers 1

shutdownMethod · 0.95

Calls 1

_compute_data_idxMethod · 0.95

Tested by

no test coverage detected