sched/: Replace explict references to g_readytorun with indirect references via the this_task() macro

This commit is contained in:
Gregory Nutt
2016-02-06 17:44:41 -06:00
parent 12f95c6f6b
commit 74db48202e
79 changed files with 114 additions and 606 deletions
+2 -6
View File
@@ -228,13 +228,9 @@ o Task/Scheduler (sched/)
hidden behind simple accessor functions and so the internal
data structures can be changed if need with very little impact.
The only area are the list structure is not well contained is
in the sequence of code that finds the current running task:
FAR struct tcb_s *rtcb = (FAT struc tcb_s *)g_readytorun.head;
That needs to be hidden behind a macro (it would also be a problem
for any SMP implementation).
Explicity refereence to the list strucutre are hidden behnid
the macro this_task().
Status: Open
Priority: Low. Things are just the way that we want them for the way