MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / free

Method free

dm_control/_render/base.py:111–114  ·  view source on GitHub ↗

Frees resources associated with this context if its refcount is zero.

(self)

Source from the content-addressed store, hash-verified

109 self._platform_free()
110
111 def free(self):
112 """Frees resources associated with this context if its refcount is zero."""
113 if self._refcount == 0:
114 self._free_unconditionally()
115
116 def _free_unconditionally(self):
117 self._render_executor.terminate(self._free_on_executor_thread)

Callers 8

test_freeMethod · 0.45
test_refcountingMethod · 0.45
test_freeingMethod · 0.45
test_initMethod · 0.45
test_make_currentMethod · 0.45
test_freeingMethod · 0.45

Calls 1

_free_unconditionallyMethod · 0.95

Tested by 7

test_freeMethod · 0.36
test_refcountingMethod · 0.36
test_freeingMethod · 0.36
test_initMethod · 0.36
test_make_currentMethod · 0.36
test_freeingMethod · 0.36