Very simple cooperative round-robin task scheduler. See examples.

Dependents:   Garage_Control

Revision:
2:974a420997a9
Parent:
1:f043501c4bed
Child:
3:95ec5c83c2fe
--- a/SimpleScheduler.h	Fri Mar 04 12:15:38 2011 +0000
+++ b/SimpleScheduler.h	Fri Mar 04 12:40:14 2011 +0000
@@ -196,7 +196,7 @@
                 if((*itor)->_counter == 0) {
                     (*itor)->_counter = (*itor)->_reload;
                     if (!(*itor)->_suspended) {
-                        (*itor)->_callback->call();  
+                        (*itor)->_callback->call((*itor));  
                     }                  
                 }
             }