HAL_Linux: fixed scheduler initialisation bug in Linux HAL as well

This commit is contained in:
Andrew Tridgell 2013-10-26 18:25:27 +11:00 committed by Randy Mackay
parent 13d9103a83
commit 61d4134ba9

View File

@ -213,6 +213,9 @@ void LinuxScheduler::_run_timers(bool called_from_timer_thread)
void *LinuxScheduler::_timer_thread(void)
{
_setup_realtime(32768);
while (system_initializing()) {
poll(NULL, 0, 1);
}
while (true) {
_microsleep(5000);
@ -245,6 +248,9 @@ void LinuxScheduler::_run_io(void)
void *LinuxScheduler::_uart_thread(void)
{
_setup_realtime(32768);
while (system_initializing()) {
poll(NULL, 0, 1);
}
while (true) {
_microsleep(10000);
@ -259,6 +265,9 @@ void *LinuxScheduler::_uart_thread(void)
void *LinuxScheduler::_io_thread(void)
{
_setup_realtime(32768);
while (system_initializing()) {
poll(NULL, 0, 1);
}
while (true) {
_microsleep(20000);