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++ MT-multithreading and servers » what about WorkQueue : public CoWork
BUGFIX to WorkQueue [message #25358 is a reply to message #25291] Thu, 18 February 2010 16:02 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
in case anyone working with the WorkQueue, it does not what it should. previous version relied on CoWork, which uses Vector<MJob> as job storage, and due to the presumption that jobs independant, the execution order didnt matter. so CoWork uses Vector::Pop to dequeue jobs, which dequeues the latest inserted, not the first inserted.

this version here i have switched the former WorkQueue implementation to use Link<MJob>. so the order is preserved

@mirek: this is still not the example i wanted to provide Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DnD hangs in MT Refresh()ing
Next Topic: Linux MT problems with time functions
Goto Forum:
  


Current Time: Thu Aug 28 08:55:23 CEST 2025

Total time taken to generate the page: 0.06845 seconds