Skip to content

SR-1908 Set detach state on creation to DETACHED #425

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
Jun 28, 2016

Conversation

iachievedit
Copy link
Contributor

What's in this pull request?

Prior to pthread_create call there is an opportunity to set the thread's attributes with pthread_attr_set* routines. This PR sets both the scope of the thread to SYSTEM and the detached state to CREATE_DETACHED which allows the thread to exit and cleanup its resources upon pthread_exit without waiting for a pthread_join.

Resolved bug number: SR-1908

@phausler phausler merged commit e74f745 into swiftlang:master Jun 28, 2016
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