Skip to content

internal: no_std thread local - #6356

Open
Person-93 wants to merge 3 commits into
PyO3:mainfrom
Person-93:no_std_thread_local
Open

internal: no_std thread local#6356
Person-93 wants to merge 3 commits into
PyO3:mainfrom
Person-93:no_std_thread_local

Conversation

@Person-93

Copy link
Copy Markdown
Contributor

I've re-implemented LocalKey in terms of python's tss api.

There is currently only one place that uses thread locals, and that is internal/state.rs. It stores the ATTACH_COUNT in a thread local Cell. If the plan is to eventually re-write that file using the PyThreadState functions, it can probably be done without using thread local storage at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant