Add timeout pool source
authorEmmanuele Bassi <ebassi@openedhand.com>
Sat, 9 Jun 2007 13:19:52 +0000 (13:19 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Sat, 9 Jun 2007 13:19:52 +0000 (13:19 +0000)
commit7f4b6b9c0efa5251dcddef1ee69610810713e0de
tree7ee9bae393d64dbcb46569f90d61272d0d7fab32
parent6c99b685dd37ce4fab0870883d178be6b1afbd9e
Add timeout pool source

A ClutterTimeoutPool is a source for the GLib main loop which pools
multiple timeout functions. The pool is always sorted so that the first
timeout to expire is also the first element of the pool; hence, extraction
is a constant time operation. This also makes the usage of multiple
timeouts at the same priority not compete for a timeslice of the main
loop, leading to starvation.
clutter/Makefile.am
clutter/clutter-timeout-pool.c [new file with mode: 0644]
clutter/clutter-timeout-pool.h [new file with mode: 0644]