Enter the operation hierarchy as a workspace transaction owner. Only this outer boundary permits same-thread nested repository operations to reuse its locks. Ordinary independent acquisitions still contend.
(
&self,
working_copy: WorkingCopyId,
)
| 376 | /// Only this outer boundary permits same-thread nested repository operations |
| 377 | /// to reuse its locks. Ordinary independent acquisitions still contend. |
| 378 | pub(super) fn try_lock_workspace_operation( |
| 379 | &self, |
| 380 | working_copy: WorkingCopyId, |
| 381 | ) -> Result<WorkingCopyOperationLockGuard, RepositoryError> { |
| 382 | self.validate_working_copy(working_copy)?; |
| 383 | self.try_lock_common_operation_with_reentrancy(true)? |
| 384 | .try_lock_working_copy(working_copy) |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | impl RepositoryCommonLockGuard { |
no test coverage detected