Skip to content
Snippets Groups Projects

Adding logger module to advligorts

Merged Ezekiel Dohmen requested to merge ezekiel.dohmen/advligorts:logger-module-parts into master
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
@@ -160,7 +160,7 @@ int printer_thread_fn( void * pv )
{
//If num filled is ready but ready_for_print is not, we are waiting for
//the vsnprintf to complete
//the vsnprintf to complete, which will be fast
if(ready_for_print[next_to_print] == 0)
{
schedule();
@@ -181,9 +181,12 @@ int printer_thread_fn( void * pv )
}
num_read = 0;
//If there are no mesages ready for printing, we can give up the CPU
// If there are no mesages ready for printing, we can give up the CPU
// for a while
if( atomic_read(&g_num_filled) == 0)
usleep_range(499, 1000);
usleep_range(1000, 2500);
else //We have more messages
schedule();
}
return 0;
}
Loading