Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 9, 2024

Previously we were only setting this value when a worker was first created. This means that changes to this value could persist between pthreads.

Previously we were only setting this value when a worker was first
created.  This means that changes to this value could persist between
pthreads.
@sbc100 sbc100 requested review from dschuff and kripken September 9, 2024 21:15
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Is this easily testable perhaps?

@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 9, 2024

Is this easily testable perhaps?

When trying to think about how to test this figured out that it might not really be the cause of any issues. This is because its very hard to actually exit a thread with noExitRuntime set to true. This is because emscripten_force_exit will reset this global.

In any case I still think this is nice cleanup as it removed a method and groups the noExit state setting into a single place.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Agreed to both of the last comments.

@sbc100 sbc100 merged commit eab2f3f into emscripten-core:main Sep 9, 2024
27 of 28 checks passed
@sbc100 sbc100 deleted the initWorker branch September 9, 2024 22:55
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