Commit 9d7365d
committed
Clarify the PyGILState variant in the docs...
as being an init, do things, finalizer trio where lots of stuff without the GIL
held can happen inbetween. There might not be a GIL but when used in builds
where there is you don't want to hold it.
There's an internal recursion counter within the PyGILState APIs, if it goes to
0 on Release, any Python thread state that it created is destroyed. We're
working around that. Should I mention that internals detail?1 parent 24c05e2 commit 9d7365d
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
261 | 266 | | |
262 | | - | |
263 | 267 | | |
264 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
265 | 274 | | |
266 | | - | |
267 | 275 | | |
268 | 276 | | |
269 | 277 | | |
270 | 278 | | |
271 | | - | |
| 279 | + | |
| 280 | + | |
272 | 281 | | |
273 | | - | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
| |||
0 commit comments