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,
)
| 351 | /// Only this outer boundary permits same-thread nested repository operations |
| 352 | /// to reuse its locks. Ordinary independent acquisitions still contend. |
| 353 | pub(super) fn try_lock_workspace_operation( |
| 354 | &self, |
| 355 | working_copy: WorkingCopyId, |
| 356 | ) -> Result<WorkingCopyOperationLockGuard, RepositoryError> { |
| 357 | self.validate_working_copy(working_copy)?; |
| 358 | self.try_lock_common_operation_with_reentrancy(true)? |
| 359 | .try_lock_working_copy(working_copy) |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | impl RepositoryCommonLockGuard { |
no test coverage detected