osd-contiki/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 Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
dev Merge pull request #920 from cetic/pr-slip-queue 2016-07-01 13:50:18 +02:00
lib core/lib/gcr.c: fix warning: function declaration isn't a prototype 2016-03-02 07:12:27 +01:00
loader Added MSP430X ELFLOADER support to load image with large memory model. 2015-06-15 17:53:18 +05:30
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 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
contiki-net.h Add standardized nameserver pool 2015-01-09 09:44:06 +01:00
contiki-version.h Bumped the version number from 2.6 to 3.x, which is to be used in the development branch 2013-12-12 17:33:18 +01:00
contiki.h A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00