Skip to content

Commit

Permalink
link to interior mutability docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Oct 1, 2024
1 parent cc94cc8 commit 85c8bf0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions guide/src/free-threading.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ on mutable pyclass implementations that do not make strong assumptions about the
GIL.

It was always possible to generate panics like this in PyO3 in code that
releases the GIL with `allow_threads`, but now in free-threaded Python there are
more opportunities to trigger these panics because there is no GIL.
releases the GIL with `allow_threads` (see [the docs on interior
mutability](./class.md#bound-and-interior-mutability),) but now in free-threaded
Python there are more opportunities to trigger these panics because there is no
GIL.

We plan to allow user-selectable semantics for for mutable pyclass definitions in
PyO3 0.24, allowing some form of opt-in locking to emulate the GIL if
Expand Down

0 comments on commit 85c8bf0

Please sign in to comment.