Skip to content

Commit

Permalink
activity: revert behavior for ORO_WAIT_REL policy to always wait for …
Browse files Browse the repository at this point in the history
…full periods (as before #91)

# Conflicts:
#	rtt/Activity.cpp
  • Loading branch information
Hamal Marino authored and francisco-miguel-almeida committed Apr 5, 2019
1 parent bf4a3d1 commit 5f98a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtt/Activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ namespace RTT
else if (overruns != 0) {
--overruns;
}
if ( !mabswaitpolicy && wakeup < now ) {
wakeup = wakeup + ((now-wakeup)/nsperiod+1)*nsperiod; // assumes that (now-wakeup)/nsperiod rounds down !
if ( !mabswaitpolicy ) {
wakeup = now + nsperiod;
}
mtimeout = true;
}
Expand Down

0 comments on commit 5f98a75

Please # to comment.