MCPcopy
hub / github.com/django/django / dec_thread_sharing

Method dec_thread_sharing

django/db/backends/base/base.py:629–635  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

627 self._thread_sharing_count += 1
628
629 def dec_thread_sharing(self):
630 with self._thread_sharing_lock:
631 if self._thread_sharing_count <= 0:
632 raise RuntimeError(
633 "Cannot decrement the thread sharing count below zero."
634 )
635 self._thread_sharing_count -= 1
636
637 def validate_thread_sharing(self):
638 """

Calls

no outgoing calls