Skip to content

Move thread exit code to native. NFC - #14853

Merged
sbc100 merged 1 commit into
mainfrom
exit_native
Aug 13, 2021
Merged

sbc100 merged 1 commit into
mainfrom
exit_native

Conversation

@sbc100

@sbc100 sbc100 commented Aug 12, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

@sbc100
sbc100 requested review from kleisauke and kripken 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
Comment thread system/lib/pthread/pthread_create.c Outdated

// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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