make FixedIndexReader Send and update comments
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
fded74d0c7
commit
5be4065baf
@ -36,7 +36,8 @@ pub struct DynamicIndexReader {
|
||||
pub ctime: u64,
|
||||
}
|
||||
|
||||
// fixme: ???!!!
|
||||
// `index` is mmap()ed which cannot be thread-local so should be sendable
|
||||
// FIXME: Introduce an mmap wrapper type for this?
|
||||
unsafe impl Send for DynamicIndexReader {}
|
||||
|
||||
impl Drop for DynamicIndexReader {
|
||||
|
@ -36,6 +36,9 @@ pub struct FixedIndexReader {
|
||||
pub ctime: u64,
|
||||
}
|
||||
|
||||
// `index` is mmap()ed which cannot be thread-local so should be sendable
|
||||
unsafe impl Send for FixedIndexReader {}
|
||||
|
||||
impl Drop for FixedIndexReader {
|
||||
|
||||
fn drop(&mut self) {
|
||||
|
Loading…
Reference in New Issue
Block a user