Skip to content

Add comments about _Py_LOCK_DONT_DETACH usage.#153817

Open
nascheme wants to merge 1 commit into
python:mainfrom
nascheme:intern-lock-dont-detach-comment
Open

Add comments about _Py_LOCK_DONT_DETACH usage.#153817
nascheme wants to merge 1 commit into
python:mainfrom
nascheme:intern-lock-dont-detach-comment

Conversation

@nascheme

Copy link
Copy Markdown
Member

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant