-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
?
-
6492
-
Not Needed
Describe your problem or use case
As part of implementing support for bundling realm files in Realm Kotlin we need exclusive access to the realm file path to prevent multiple processes to create/copy the file concurrently.
Describe the solution you'd like
It would be convenient with something like DB::call_with_lock(realm_path) which is used to achieve the above in Realm Java. This is deliberately not exposed to the C-API (https://github.com/realm/realm-core/issues/5058#issuecomment-1001647865), so I am open to suggestions that enables me to achieving something similar.