]> git.cworth.org Git - apitrace/commit
replay: Fix --loop to work when --singlethread is in effect
authorCarl Worth <cworth@cworth.org>
Mon, 15 Apr 2013 17:55:41 +0000 (10:55 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 15 Apr 2013 17:55:41 +0000 (10:55 -0700)
commit1c382ef13676cd3b4f47b23a8f294a97d0c53312
tree83d373ac8408e01f15411d0e07805e645c9b8a5a
parent1769841e56a96fe4ab399ab7eb22f17c9ca89351
replay: Fix --loop to work when --singlethread is in effect

The original implementation of --loop was made only to the code
implementing multi-threaded replay, (the RelayRunner class and
friends), so that when --singlethread is in effect, the --loop option
has no effect.

This commit fixes the bug by copying the --loop logic to the
single-threaded case as well.

Thanks to Peter Lohrmann for reporting the bug.
retrace/retrace_main.cpp