Skip to content

[OpenMP] Use the more appropriate function to retrieve the thread id on OpenBSD #65553

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Sep 7, 2023

Use the getthrid() function instead of a syscall.

@brad0 brad0 force-pushed the openmp_openbsd_kmp_gettid branch from c222863 to df63b49 Compare September 7, 2023 00:20
…on OpenBSD

Use the getthrid() function instead of a syscall.
@brad0 brad0 force-pushed the openmp_openbsd_kmp_gettid branch from df63b49 to b42c427 Compare September 7, 2023 01:13
@shiltian shiltian requested a review from a team September 7, 2023 02:09
@shiltian
Copy link
Contributor

shiltian commented Sep 7, 2023

The changes are fine but what is the motivation of doing it?

@brad0
Copy link
Contributor Author

brad0 commented Sep 8, 2023

The changes are fine but what is the motivation of doing it?

If this was a few years ago I'd say for consistency as everywhere else we use the same function, but nowadays the function must be used nowadays as opposed to a syscall.

@brad0 brad0 merged commit 7e31b45 into llvm:main Sep 8, 2023
@brad0 brad0 deleted the openmp_openbsd_kmp_gettid branch September 8, 2023 01:33
tru pushed a commit that referenced this pull request Oct 30, 2023
…on OpenBSD (#65553)

Use the getthrid() function instead of a syscall.

(cherry picked from commit 7e31b45)
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.

3 participants