From 85c8bf08e829cd5bc5fcaef321a3347ce9d2bba3 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Tue, 1 Oct 2024 14:58:44 -0600 Subject: [PATCH] link to interior mutability docs --- guide/src/free-threading.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/guide/src/free-threading.md b/guide/src/free-threading.md index 39f0373d67f..d2b7c34e398 100644 --- a/guide/src/free-threading.md +++ b/guide/src/free-threading.md @@ -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