Skip to content

Move thread exit code to native. NFC #14853

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
Aug 13, 2021
Merged

Move thread exit code to native. NFC #14853

merged 1 commit into from
Aug 13, 2021

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Aug 12, 2021

No description provided.

@sbc100 sbc100 requested review from kripken and kleisauke August 12, 2021 18:40
@sbc100 sbc100 enabled auto-merge (squash) August 12, 2021 19:33
@sbc100 sbc100 disabled auto-merge August 12, 2021 19:33

// Mark the thread as no longer running.
// When we publish this, the main thread is free to deallocate the thread object and we are done.
// Therefore set _pthread_self = 0; above to 'release' the object in this worker thread.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the thing this comment mentions done?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is referring to the _emscripten_thread_init below. The comment is just copied directly and equally inaccurate before this change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just removed this line since _emscripten_thread_init is already commented below.

@sbc100 sbc100 merged commit 60de330 into main Aug 13, 2021
@sbc100 sbc100 deleted the exit_native branch August 13, 2021 00:00
thyrrestrup pushed a commit to thyrrestrup/emscripten that referenced this pull request Aug 18, 2021
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