mirror of
https://github.com/nasa/trick.git
synced 2025-04-15 23:16:42 +00:00
Revert Trick::Clock::clock_spin shouldn't call RELEASE() #489
Reverting change, adding back RELEASE call in clock_spin loop.
This commit is contained in:
parent
24894ea08a
commit
56ddfab6a5
@ -87,6 +87,9 @@ long long Trick::Clock::clock_spin(long long req_time) {
|
||||
curr_time = clock_time() ;
|
||||
/* Perform spin loop to allow current time to catch up to requested time */
|
||||
while (curr_time < req_time) {
|
||||
if ( exec_get_rt_nap() == 1 ) {
|
||||
RELEASE();
|
||||
}
|
||||
curr_time = clock_time();
|
||||
}
|
||||
return curr_time ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user