We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2098eb commit 2412264Copy full SHA for 2412264
vm/src/pyobject.rs
@@ -1222,6 +1222,10 @@ pub trait PyValue: fmt::Debug + Sized + 'static {
1222
1223
// Temporary trait to follow the progress of threading conversion
1224
pub trait ThreadSafe: Send + Sync {}
1225
+// Temporary definitions to help with converting object that contain PyObjectRef to ThreadSafe.
1226
+// Should be removed before threading is allowed.
1227
+unsafe impl<T: ?Sized + PyObjectPayload> Send for PyObject<T> {}
1228
+unsafe impl<T: ?Sized + PyObjectPayload> Sync for PyObject<T> {}
1229
1230
pub trait PyObjectPayload: Any + fmt::Debug + 'static {
1231
fn as_any(&self) -> &dyn Any;
0 commit comments