Acquire the lock. :returns: the lock object
(self)
| 942 | return self._context.lock_counter |
| 943 | |
| 944 | def __enter__(self) -> Self: |
| 945 | """ |
| 946 | Acquire the lock. |
| 947 | |
| 948 | :returns: the lock object |
| 949 | |
| 950 | """ |
| 951 | self.acquire() |
| 952 | return self |
| 953 | |
| 954 | def __exit__( |
| 955 | self, |