MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _release_locks

Function _release_locks

pymongo/lock.py:77–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76
77def _release_locks() -> None:
78 # Completed the fork, reset all the locks in the child.
79 for lock in _forkable_locks:
80 if lock.locked():
81 lock.release()
82
83
84async def _async_cond_wait(condition: Condition, timeout: Optional[float]) -> bool:

Callers 2

_after_fork_childFunction · 0.90
_after_fork_childFunction · 0.90

Calls 2

lockedMethod · 0.80
releaseMethod · 0.80

Tested by

no test coverage detected