Cosa: An Object-Oriented Platform for Arduino programming

Nice docs!

That does look like a good implementation. Most threading impl's I've seen are over the top for the small MCU they're supposed to work on (IMHO).

I will stick with my macro's and switch statement (two bytes) for a while and see if I can get it to work. My aim is to allow the tasks to run with and without a scheduler. The scheduler only handles waiting tasks, at least that's the idea.

Thanx!