-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The sinks now record triplets: latency, topic idx and source id. Sources now try to agree on a reference time, then start publishing at configurable delay from that reference time. This allows running two sources publishing at exactly the same time (if you have enough cores), or rather preventing them from publishing at the same time. It adds a run script that does a small 2x2 matrix of tests with two sources and two sinks: starting at the same time or the second delayed by 2ms, and with/without sleep 100us in between samples. It also fixes a potential race condition on appending latencies in the listener. Since the listeners in this experiment always get invoked on the same thread it didn't cause any problems. Signed-off-by: Erik Boasson <[email protected]>
- Loading branch information
Showing
3 changed files
with
225 additions
and
70 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
Oops, something went wrong.