Skip to content

Implement partition locking mechanism with R interface - #14

Merged
dipterix merged 6 commits into
mainfrom
cross-platform
Oct 11, 2026
Merged

dipterix merged 6 commits into
mainfrom
cross-platform

Conversation

@dipterix

Copy link
Copy Markdown
Owner
  • Added lock.h and lockExports.cpp to define and implement partition locking functionality.
  • Introduced functions for acquiring, releasing, and managing locks on partitions.
  • Implemented advisory locking using file-based mechanisms compatible with both POSIX and Windows.
  • Created helper functions for testing partition locks in helper-lock.R and test-lock-process.R.
  • Developed comprehensive tests for partition locking behavior, including scenarios for concurrent access and timeout handling in test-lock.R and test-partition-create.R.
  • Ensured that locks are properly released upon process termination and that temporary files are managed correctly during partition writes.

- Added `lock.h` and `lockExports.cpp` to define and implement partition locking functionality.
- Introduced functions for acquiring, releasing, and managing locks on partitions.
- Implemented advisory locking using file-based mechanisms compatible with both POSIX and Windows.
- Created helper functions for testing partition locks in `helper-lock.R` and `test-lock-process.R`.
- Developed comprehensive tests for partition locking behavior, including scenarios for concurrent access and timeout handling in `test-lock.R` and `test-partition-create.R`.
- Ensured that locks are properly released upon process termination and that temporary files are managed correctly during partition writes.
@dipterix
dipterix merged commit 13e997c into main Oct 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant