Modified the implementation of usleep and make ModelExecution process "THREAD SLEEP...
[c11tester.git] / fuzzer.cc
index 5b5be9f..12396dd 100644 (file)
--- a/fuzzer.cc
+++ b/fuzzer.cc
@@ -36,5 +36,5 @@ bool Fuzzer::shouldWake(const ModelAction *sleep) {
        clock_gettime(CLOCK_MONOTONIC, &currtime);
        uint64_t lcurrtime = currtime.tv_sec * 1000000000 + currtime.tv_nsec;
 
-       return ((sleep->get_time()+sleep->get_value()) >= lcurrtime);
+       return ((sleep->get_time()+sleep->get_value()) < lcurrtime);
 }