Remove unsafe impl {Send,Sync} for {Rav1dContext,TaskThreadData_delayed_fg}
#1177
Labels
unsafe impl {Send,Sync} for {Rav1dContext,TaskThreadData_delayed_fg}
#1177
These were
TODO
s and are unjustified/unsound.The types that need to be
Send + Sync
are:CArc<T>::stable_ref
Rav1dPicAllocator::cookie
Rav1dPictureData::allocator_data
Dav1dITUTT35::payload
UnsafeCell
:DisjointMut<T>::inner
For these:
Rav1dPicAllocator::cookie
Rav1dPictureData::allocator_data
Dav1dITUTT35::payload
which are for C APIs, we should just delegate the safety requirements to
# Safety
docs. A wrapperSend + Sync
ptr type might be useful.For these:
CArc<T>::stable_ref
DisjointMut<T>::inner
Send + Sync
is justified by the type and its API.The text was updated successfully, but these errors were encountered: