On 05/16/2013 12:38 AM, MORITA Kazutaka wrote: > Currently, if we call queue_work() in the second event_loop(), > work_queue_wait() cannot wait for completion of the work. > > This adds a field 'nr_works' to the worker_info and makes > work_queue_empty() return true only if both worker_routine() and > worker_thread_request_done() have no outstanding works. I think this > removes a race condition in work_queue_wait() completely.
Applied after s/nr_works/nr_workers/ Thanks, Yuan -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
