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
parent 622f0dcc1d
commit 5af51140a9
1 changed files with 9 additions and 0 deletions

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