Skip to content
Snippets Groups Projects
  1. Nov 21, 2011
  2. Nov 17, 2011
  3. Aug 30, 2011
  4. Sep 16, 2010
  5. Aug 24, 2010
  6. Aug 13, 2010
  7. Jul 29, 2010
  8. Jun 17, 2010
  9. Jan 13, 2010
  10. Jan 04, 2010
  11. Oct 02, 2009
  12. Dec 14, 2008
  13. Oct 27, 2008
  14. Jul 30, 2008
  15. Jul 22, 2008
    • Michael Hanselmann's avatar
      Split conditions in worker pool · 53b1d12b
      Michael Hanselmann authored
      This patch splits the single threading.Condition object used in the
      worker pool for synchronization into three.
      
      - worker_to_pool: Notified if a worker wants to notify the pool
      - pool_to_worker: Notified if the pool wants to notify a single
        or all workers
      - pool_to_pool: Used for synchronization in Quiesce
      
      Reviewed-by: ultrotter
      53b1d12b
  16. Jul 08, 2008
    • Michael Hanselmann's avatar
      workerpool: Don't notify if there was no task · b3558df1
      Michael Hanselmann authored
      Workers have to notify their pool if they finished a task to make
      the WorkerPool.Quiesce function work. This is done in the finally:
      clause to notify even in case of an exception. However, before
      we notified on each run, even if there was no task, thereby creating
      some sort of an endless loop of notifications. In a future patch
      we should split the single condition object into several to
      produce less spurious notifications.
      
      While we're at this, this patch also adds two new functions to
      BaseWorker to query whether it's currently running a task and then
      uses one of these functions in the WorkerPool instead of querying
      the internal variable directly.
      
      Reviewed-by: iustinp
      b3558df1
  17. Jul 04, 2008
Loading