Enforce deterministic behavior.
This commit is contained in:
@@ -221,7 +221,9 @@ void TlmRecorder::terminateRemainingTransactions()
|
||||
{
|
||||
while (!currentTransactionsInSystem.empty())
|
||||
{
|
||||
auto transaction = currentTransactionsInSystem.begin();
|
||||
auto transaction = std::min_element(currentTransactionsInSystem.begin(),
|
||||
currentTransactionsInSystem.end(), [](decltype(currentTransactionsInSystem)::value_type& l,
|
||||
decltype(currentTransactionsInSystem)::value_type& r) -> bool {return l.second.id < r.second.id;});
|
||||
std::cout << transaction->second.recordedPhases.front().name << std::endl;
|
||||
if (transaction->second.cmd == 'X')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user