37c37
< class ExecContext;
---
> class ThreadContext;
40,41c40,41
< * execution context. When a switchover takes place the events can be migrated
< * to the new execution context, otherwise you could have a wake timer interrupt
---
> * thread context. When a switchover takes place the events can be migrated
> * to the new thread context, otherwise you could have a wake timer interrupt
55,56c55,56
< /** The execution context that is switched to the new cpus. */
< ExecContext *xc;
---
> /** The thread context that is switched to the new cpus. */
> ThreadContext *tc;
59,60c59,60
< CpuEvent(EventQueue *q, ExecContext *_xc, Priority p = Default_Pri)
< : Event(q, p), xc(_xc)
---
> CpuEvent(EventQueue *q, ThreadContext *_tc, Priority p = Default_Pri)
> : Event(q, p), tc(_tc)
66,68c66,68
< /** Update all events switching old xc to new xc.
< * @param oldXc the old exeuction context we are switching from
< * @param newXc the new execution context we are switching to.
---
> /** Update all events switching old tc to new tc.
> * @param oldTc the old thread context we are switching from
> * @param newTc the new thread context we are switching to.
70c70,71
< static void replaceExecContext(ExecContext *oldXc, ExecContext *newXc);
---
> static void replaceThreadContext(ThreadContext *oldTc,
> ThreadContext *newTc);
73c74
< template <class T, void (T::* F)(ExecContext *xc)>
---
> template <class T, void (T::* F)(ThreadContext *tc)>
80c81
< CpuEventWrapper(T *obj, ExecContext *_xc, EventQueue *q = &mainEventQueue,
---
> CpuEventWrapper(T *obj, ThreadContext *_tc, EventQueue *q = &mainEventQueue,
82c83
< : CpuEvent(q, _xc, p), object(obj)
---
> : CpuEvent(q, _tc, p), object(obj)
84c85
< void process() { (object->*F)(xc); }
---
> void process() { (object->*F)(tc); }