Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 28, 2023

The better reflects that is actually being returned here. In fact, there may be no main browser thread at all, and we have never tracked the thread ID of the main browser thread, only the main runtime thread.

Use a macro to continue to support the old name, but mark is as deprecated so folks will get a warning.

@sbc100 sbc100 requested review from kleisauke and tlively February 28, 2023 17:01
@sbc100 sbc100 force-pushed the main_thread_id branch 2 times, most recently from 54ee4ff to b904a79 Compare February 28, 2023 17:13
…hread_id. NFC

The better reflects that is actually being returned here.  In fact,
there may be no main browser thread at all, and we have never tracked
the thread ID of the main browser thread, only the main runtime
thread.

Use a macro to continue to support the old name, but mark is as
deprecated so folks will get a warning.

Also, update the corresponding
EM_CALLBACK_THREAD_CONTEXT_MAIN_BROWSER_THREAD macro.
@sbc100 sbc100 enabled auto-merge (squash) February 28, 2023 20:19
@sbc100 sbc100 merged commit f641d74 into main Feb 28, 2023
@sbc100 sbc100 deleted the main_thread_id branch February 28, 2023 21:30
impact-maker pushed a commit to impact-maker/emscripten that referenced this pull request Mar 17, 2023
…hread_id. NFC (emscripten-core#18872)

The better reflects that is actually being returned here.  In fact,
there may be no main browser thread at all, and we have never tracked
the thread ID of the main browser thread, only the main runtime
thread.

Use a macro to continue to support the old name, but mark is as
deprecated so folks will get a warning.

Also, update the corresponding
EM_CALLBACK_THREAD_CONTEXT_MAIN_BROWSER_THREAD macro.
impact-maker pushed a commit to impact-maker/emscripten that referenced this pull request Mar 17, 2023
…hread_id. NFC (emscripten-core#18872)

The better reflects that is actually being returned here.  In fact,
there may be no main browser thread at all, and we have never tracked
the thread ID of the main browser thread, only the main runtime
thread.

Use a macro to continue to support the old name, but mark is as
deprecated so folks will get a warning.

Also, update the corresponding
EM_CALLBACK_THREAD_CONTEXT_MAIN_BROWSER_THREAD macro.
toyobayashi added a commit to toyobayashi/emnapi that referenced this pull request Mar 27, 2023
sbc100 added a commit that referenced this pull request Jun 22, 2023
- There was a partial renaming in #18872 which broken the build of
  this test.
- The passing of 0 instead of EMSCRIPTEN_EVENT_TARGET_WINDOW was
  generating a warnings that null is not allowed for argument zero.
- No need to use (void*) when we can just use pthread_t.
sbc100 added a commit that referenced this pull request Jun 22, 2023
- There was a partial renaming in #18872 which broken the build of
  this test.
- The passing of 0 instead of EMSCRIPTEN_EVENT_TARGET_WINDOW was
  generating a warnings that null is not allowed for argument zero.
- No need to use (void*) when we can just use pthread_t.
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.

3 participants