Skip to content

Commit

Permalink
remove another sleep. (see tmakkonen#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
soroshsabz committed Feb 24, 2023
1 parent 8c91cde commit 721d473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
#include <string>
#include <vector>
#include <sstream>
#include <thread>
#include <cstring>
#include <ctime>
#include <cassert>
#include <chrono>

#include "commands.h"
#include "state.h"
Expand Down Expand Up @@ -497,7 +499,8 @@ bool Wait::RunCommand(const std::string &loopsuffix) {
return true;
}
//cout << "Wait: usleep " << n << endl;
usleep(WAIT_SLEEP_ACCURACY * 1000);
using namespace std::chrono_literals;
std::this_thread::sleep_for((WAIT_SLEEP_ACCURACY * 1000)us);
if(!closed
&& TPState::Instance().GetState() == TPState::TERMINATED) {
errorstring = "Wait: application terminated";
Expand Down

0 comments on commit 721d473

Please sign in to comment.