Skip to content
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

Add pthread_self & __VERIFIER_tid intrinsics #577

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

ThomasHaas
Copy link
Collaborator

Added support for pthread_t pthread_self(void) as well as unsigned int __VERIFIER_tid(void) (the semantics are identical, but they live in different headers and have a different return type).
The id assigned by pthread_create(&t, ...) (to t) matches with the return value of pthread_self() in the child thread.

Added a unit test to check that the intrinsics work correctly.

… different return type, different headers).

Added a unit test to check that their semantics are correct.
@hernanponcedeleon hernanponcedeleon merged commit ad36d3b into development Nov 29, 2023
1 check passed
@hernanponcedeleon hernanponcedeleon deleted the pthread_self_intrinsic branch November 29, 2023 12:09
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.

2 participants