From: Andre Noll Date: Fri, 2 Sep 2011 16:27:29 +0000 (+0200) Subject: sched: Allow more than one running scheduler instance. X-Git-Tag: v0.4.9~1^2~7 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=8aa0f575bcca12ab63ab53141c2144448c457478;hp=8aa0f575bcca12ab63ab53141c2144448c457478;p=paraslash.git sched: Allow more than one running scheduler instance. The interactive completion code must be able to run a second, independent scheduler instance for generating the possible completions. This is currently not possible because the pre_select and post_select list heads of the scheduler are defined globally in sched.c. This patch moves these list heads from sched.c to struct sched. This leaves only the global "now" variable in sched.c, but it is OK to update this from all scheduler instances, so it can stay. Moving the two list heads to struct sched requires that several public functions, among them register_task(), grow an additional parameter. The (mostly trivial) changes that update all callers to provide the new argument make the patch rather invasive, unfortunately. ---