signal test: let sender yield CPU when idle

ref #574
This commit is contained in:
Martin Stein 2013-08-22 18:43:03 +02:00 committed by Norman Feske
parent bab1663ea2
commit fa047f4dda
1 changed files with 4 additions and 3 deletions

View File

@ -51,10 +51,11 @@ class Sender : Thread<4096>
printf("submit signal %d\n", _submit_cnt);
_transmitter.submit();
}
if (_interval_ms)
_timer.msleep(_interval_ms);
if (_interval_ms)
_timer.msleep(_interval_ms);
} else
_timer.msleep(100);
}
}