Add simple dynamic scheduling to GPeriodic

GPeriodic will now try not to use more than 50% of the CPU for its own
purposes unless there are no other tasks attempting to run.
This commit is contained in:
Ryan Lortie
2010-11-03 00:16:16 -04:00
parent 8c7e284116
commit 63b87b2c26
4 changed files with 151 additions and 16 deletions

View File

@@ -2911,7 +2911,8 @@ GPeriodic
<SUBSECTION>
g_periodic_new
g_periodic_get_hz
g_periodic_get_priority
g_periodic_get_high_priority
g_periodic_get_low_priority
<SUBSECTION>
GPeriodicTickFunc
g_periodic_add