Skip to content
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

Properly handle multi-threading #13

Open
ddeclerck opened this issue Apr 11, 2022 · 0 comments
Open

Properly handle multi-threading #13

ddeclerck opened this issue Apr 11, 2022 · 0 comments
Labels
enhancement New feature or request event handling Anything related to event handling

Comments

@ddeclerck
Copy link
Collaborator

Some OSes have specific requirements as to to thread running the event loops :

  • on OSX, the event loop must be run from the main thread
  • on Windows, each thread that create windows must have an event loop

In order to uniformize these behaviors, we should ensure the event loop is always run from the main thread and that windows are always created from this thread. This probably requires some message passing facilities between the main thread and secondary threads.

@ddeclerck ddeclerck added enhancement New feature or request event handling Anything related to event handling labels Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request event handling Anything related to event handling
Projects
None yet
Development

No branches or pull requests

1 participant