contiki/core/sys
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
..
arg.c
arg.h
autostart.c
autostart.h
cc-gcc.h Defining gcc specific macros in seperate header 2015-09-22 14:17:10 -06:00
cc.h Merge pull request #1133 from bkozak-scanimetrics/cc-gcc 2015-12-05 00:39:59 +01:00
clock.h
compower.c
compower.h
ctimer.c
ctimer.h
dsc.h
energest.c
energest.h
etimer.c
etimer.h
lc-addrlabels.h
lc-switch.h
lc.h
loader.h
log.h
mt.c mt: Fix preemption 2016-11-24 22:30:26 +01:00
mt.h mt: Fix preemption 2016-11-24 22:30:26 +01:00
node-id.h
process.c Removed some unnecessary statics in do_event() and process_post(). 2016-04-13 18:12:47 +02:00
process.h
procinit.c
procinit.h
pt-sem.h
pt.h
rtimer.c
rtimer.h TSCH: use RTIMER_CLOCK_DIFF to compute estimated drift, fixing a bug that would occur on 16-bit rtimer platforms 2016-04-27 14:13:33 +02:00
stimer.c
stimer.h
subprocess.h
timer.c
timer.h