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

Ensures that an executor thread can not be created twice. #757

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

balazsracz
Copy link
Collaborator

Executors are by definition one thread each.
When accidentally more than one thread is created, all of our threading assumptions are broken.
This PR adds an assert to prevent this from happening.

@balazsracz balazsracz requested a review from bakerstu December 29, 2023 09:44
@balazsracz balazsracz merged commit 0869950 into master Dec 31, 2023
4 checks passed
@balazsracz balazsracz deleted the bracz-exec-multi-thread-assert branch December 31, 2023 11:30
balazsracz added a commit that referenced this pull request Jan 1, 2024
# Via GitHub
* master:
  Adds configuration options for TCP sockets, tuning for Hub app. (#759)
  Limits end to end buffering in gridconnect bridge. (#758)
  Ensures that an executor thread can not be created twice. (#757)
  Fixes build_bootloader_img.py. (#755)

# Conflicts:
#	src/utils/sources
balazsracz added a commit that referenced this pull request Jan 2, 2024
* master:
  Adds configuration options for TCP sockets, tuning for Hub app. (#759)
  Limits end to end buffering in gridconnect bridge. (#758)
  Ensures that an executor thread can not be created twice. (#757)
  Fixes build_bootloader_img.py. (#755)
balazsracz added a commit that referenced this pull request Jan 2, 2024
* bracz-optimize-tcp-socket:
  Adds configuration options for TCP sockets, tuning for Hub app. (#759)
  Limits end to end buffering in gridconnect bridge. (#758)
  Ensures that an executor thread can not be created twice. (#757)
  Fixes build_bootloader_img.py. (#755)
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