You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…alfJung
Detect when pthread_mutex_t is moved
What I am not sure about this PR is how to support storing the additional mutex data like its address and kind. If I understand correctly the `concurrency::sync::Mutex` struct is to be used by any mutex implementation. This possibly means that different implementation might want to store different data in the mutex. So any additional data should be implementation defined somehow. Solutions that come to mind:
- Store the additional data as `Box<dyn Any>` and the implementations can downcast their data when they fetch them.
- Have each shim implementation define a `static mut` map between `MutexID`s and the additional data.
Let me know
Fixesrust-lang#3749
Follow-up from #3745 (comment)
I believe it might be a low-hanging fruit to add support for merging same-prefix uses as pointed out in linked PR:
transformed into after the assist call:
There are few concerns I'd like to point out here:
use
along with wildcard use makes something work(?)The text was updated successfully, but these errors were encountered: