Commit b38230b
committed
Add comments about _Py_LOCK_DONT_DETACH usage.
The need for _Py_LOCK_DONT_DETACH in intern_common() is not so obvious.
Add some code comments explaining why we use that flag. Also, add a
comment to the flag noting that you need extra care when writing code
that holds a mutex with this flag set.1 parent f62050d commit b38230b
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14722 | 14722 | | |
14723 | 14723 | | |
14724 | 14724 | | |
| 14725 | + | |
| 14726 | + | |
| 14727 | + | |
| 14728 | + | |
| 14729 | + | |
| 14730 | + | |
| 14731 | + | |
| 14732 | + | |
| 14733 | + | |
14725 | 14734 | | |
14726 | 14735 | | |
14727 | 14736 | | |
| |||
0 commit comments