Skip to content

The currentThread method call returns different values #147

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
Dec 16, 2015

Conversation

sgl0v
Copy link
Contributor

@sgl0v sgl0v commented Dec 15, 2015

The currentThread method call returns different values. We should check the pthread_key_create result for 0. According to documentation:

If successful, the pthread_key_create() function shall store the newly created key value at *key and
shall return zero. Otherwise, an error number shall be returned to indicate the error.

…ults for two NSThread.currentThread() calls.
parkera added a commit that referenced this pull request Dec 16, 2015
The `currentThread` method call returns different values
@parkera parkera merged commit 607ea2e into swiftlang:master Dec 16, 2015
@parkera
Copy link
Contributor

parkera commented Dec 16, 2015

Thanks!

@sgl0v sgl0v deleted the nsthread branch January 12, 2016 22:11
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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