-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a static initialization bug under linux. (#571)
The osGlobalAtomic variable was accessed from the non-default threads while the static initializers were running. This caused the mutex to be lost sometimes. After this fix a static Atomic variable does not have a constructor call, but is linker-initialized from the .data section. This bug caused the hub application to get sometimes "livelocked" on linux, with the packets printed to the screen but not being sent to any connected devices actually.
- Loading branch information
1 parent
bc8162e
commit 040bce0
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters