Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » CoWork::Finish() can wait in a worker thread while there are jobs to do
Re: CoWork::Finish() can wait in a worker thread while there are jobs to do [message #47129 is a reply to message #47128] Fri, 16 December 2016 01:43 Go to previous messageGo to previous message
busiek is currently offline  busiek
Messages: 64
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Index find on complex match
Next Topic: High resolution TimeStop code
Goto Forum:
  


Current Time: Fri May 10 02:36:11 CEST 2024

Total time taken to generate the page: 0.01975 seconds