Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fitsio/src/threadsafe_fitsfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ pub struct ThreadsafeFitsFile(Arc<Mutex<FitsFile>>);
// Safety: we explicitly wrap the type in an Arc::Mutex which is threadsafe. The Mutex ensures that
// only one thread can be modifying the file at once.
unsafe impl Send for ThreadsafeFitsFile {}
// Safety: the inner Mutex ensures exclusive access when shared across threads via &ThreadsafeFitsFile.
unsafe impl Sync for ThreadsafeFitsFile {}

impl FitsFile {
/**
Expand Down
Loading