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 orocos-toolchain#91)

# Conflicts:
#	rtt/Activity.cpp
  • Loading branch information
Hamal Marino committed Dec 26, 2017
1 parent ec9a4ea commit 23326ce
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 23326ce

Please sign in to comment.