nes-proj/core
Benoît Thébaudeau 81805129f8 mt: Fix preemption
Preemption was supposed to be supported, but it had no means of safely
updating the state of a thread, so mt_exec() could fail to resume a
preempted thread.

mt_exec() is allowed to be called only from the main Contiki thread, so
the mt threads passed to it may be only ready or exited, not running.
Consequently, there is no need for a distinction between the ready and
running states, so merge them as a started state, which avoids having to
update the state of a thread upon preemption.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2016-11-24 22:30:26 +01:00
..
cfs Added directory functions to the Commodore Platform File System. 2016-10-15 18:36:54 +02:00
ctk
dev Merge pull request #920 from cetic/pr-slip-queue 2016-07-01 13:50:18 +02:00
lib
loader
net Merge pull request #1400 from pablocorbalan/nud-with-acks 2016-11-23 12:00:13 +01:00
sys mt: Fix preemption 2016-11-24 22:30:26 +01:00
contiki-default-conf.h Simplified configuration of RPL non-storing mode 2016-06-08 14:03:21 +02:00
contiki-lib.h
contiki-net.h
contiki-version.h
contiki.h