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:
Alex Lin 2017-10-16 09:32:03 -05:00
parent 24894ea08a
commit 56ddfab6a5

View File

@ -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 ;