busiek Messages: 70 Registered: February 2011 Location: Poland
Member
I see. However my implementation schedules "master worker" in PushJob() only if there is no other workers waiting. Nevertheless, it is a problem dependent.
In general one could even set priorities to jobs and the policy can be then to jump to global job only if it has higher priority. But this can get too complicated. For my purposes it suffices that Finish() has 2nd bool argument telling whether it is allowed to jump to global job or not. Modification to the patch is simple then.