-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atomically check transceiver mode and sequence before loop dispatch.
This ensures that when one of the mode-specific loops starts, the choice of loop and the sequence number passed to it are those set by the same call to the set_transceiver_mode vendor request handler. If the handler is called a second time during dispatch, the mode and sequence numbers it sets will not yet take effect. The already selected loop will begin running, and will return as soon as it notices the sequence number has changed. This avoids any race in which the vendor request handler is called in between reading the two variables, causing the wrong loop to be started or to fail to exit when needed.
- Loading branch information
1 parent
412dcff
commit bb21675
Showing
5 changed files
with
24 additions
and
13 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
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
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