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
Not sure what you think of this, but I'm trying to track down an issue that manifests like a deadlock, and I'd like to use parking_lot's deadlock_detection feature to to see if it can help with this.
The use of send_guard here in mlua when send is enabled is not compatible with that feature and prevents the program from compiling with a compile error.
If I build against mlua from git with this quick and dirty patch:
The parking_lot/send_guard is needed only for userdata-wrappers feature (if remove parking_lot/send_guard and add userdata-wrappers then mlua would not compile).
This is because (when userdata-wrappers is enabled), the UserDataRef<T> can hold MutexGuard, which is Send-able only when GuardMarker: Send
Unfortunately there is not way to say in Cargo.toml that when bothsend and userdata-wrappers are enabled, add parking_lot/send_guard requirement.
I probably can move send_guard to userdata-wrappers = ["parking_lot/send_guard"] which makes more sense?
Not sure what you think of this, but I'm trying to track down an issue that manifests like a deadlock, and I'd like to use parking_lot's
deadlock_detection
feature to to see if it can help with this.The use of
send_guard
here in mlua whensend
is enabled is not compatible with that feature and prevents the program from compiling with a compile error.If I build against mlua from git with this quick and dirty patch:
then my overall program continues to compile and will allow me to enable deadlock_detection.
Can we find a way to allow the embedding program to opt-in or opt-out of using send_guard?
AFAICT from a quick look, it was added in #147 to facilitate external usage, so it doesn't appear as though mlua requires that feature at all.
Thanks!
The text was updated successfully, but these errors were encountered: