Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rp2: Make result of thread.get_ident() a non-zero integer.#13413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

projectgus
Copy link
Contributor

@projectgusprojectgus commentedJan 11, 2024
edited
Loading

Unfortunately this may be a breaking change for any existing rp2 MP code which makes a hard-coded comparison of thread identifier to 0 or 1.

This work was funded through GitHub Sponsors.

CPython says thread identifier is a "nonzero integer", so rp2 should use a1-indexed core number rather than 0-indexed.  This fixes thethread/thread_ident1 test failure on rp2 port.Unfortunately this may be a breaking change for rp2 code which makes ahard-coded comparison of thread identifier to 0 or 1.This work was funded through GitHub Sponsors.Signed-off-by: Angus Gratton <angus@redyak.com.au>
@dpgeorgedpgeorgeforce-pushed thebugfix/rp2_thread_ident branch from1d0335a tobdaea86CompareJanuary 16, 2024 21:04
@dpgeorgedpgeorge merged commitbdaea86 intomicropython:masterJan 16, 2024
@dpgeorge
Copy link
Member

Thank you!

@projectgusprojectgus deleted the bugfix/rp2_thread_ident branchNovember 1, 2024 05:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@projectgus@dpgeorge

[8]ページ先頭

©2009-2025 Movatter.jp