contiki-os/contiki — pull request #923 by marcas756 (2014-12-18 19:02:41+00:00)
Title: Concept: mt scheduler with events

This is just a proof of concept. Thus I placed it in /examples/multi-threading/mt-scheduler

Compiles without warnings and the examples work on native linux

- Non preemtive mt-scheduler (context switch during irq not allowed for this implementation)
- contiki process -> event -> smt_thread works
- smt_thread -> event -> smt_thread works
- smt_thread -> event -> contiki process work
- pausing smt_thread works (sleep ... wakeup via ctimer + event)
- minor changes in mt.h, mt.c (mt_current(), mt_thread -> list node)
- Additional MEMB for extended event data structure required (OUCH!)
- Increased stack size for native linux mt ... no tests with MSP430 so far