mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 14:35:14 +01:00
impl Send Sync for GenericFile
This commit is contained in:
@@ -48,6 +48,9 @@ pub struct GenericFile {
|
||||
file: RefCell<std::fs::File>,
|
||||
}
|
||||
|
||||
unsafe impl Send for GenericFile {}
|
||||
unsafe impl Sync for GenericFile {}
|
||||
|
||||
impl File for GenericFile {
|
||||
// Since we let the OS handle the locking, file locking is not supported on the generic IO implementation
|
||||
// No-op implementation allows compilation but provides no actual file locking.
|
||||
|
||||
Reference in New Issue
Block a user