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
Copy file name to clipboardExpand all lines: guide/src/free-threading.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,16 +225,15 @@ Python::attach(|py| {
225
225
});
226
226
```
227
227
228
-
### `GILProtected`is not exposed
228
+
### `GILProtected`has been removed
229
229
230
-
[`GILProtected`]is a (deprecated) PyO3 type that allows mutable access to static data by leveraging the GIL to lock concurrent access from other threads.
231
-
In free-threaded Python there is no GIL, so you will need to replace this type with some other form of locking.
232
-
In many cases, a type from [`std::sync::atomic`](https://doc.rust-lang.org/std/sync/atomic/) or a [`std::sync::Mutex`](https://doc.rust-lang.org/std/sync/struct.Mutex.html)will be sufficient.
230
+
[`GILProtected`]was a PyO3 type that allowed mutable access to static data by leveraging the GIL to lock concurrent access from other threads.
231
+
In free-threaded Python there is no GIL, so this type had to be replaced with alternative forms of locking.
232
+
In many cases, a type from [`std::sync::atomic`](https://doc.rust-lang.org/std/sync/atomic/) or a [`std::sync::Mutex`](https://doc.rust-lang.org/std/sync/struct.Mutex.html)was sufficient.
0 commit comments