Windows: Run Workers until empty task queue
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 29 Jan 2012 15:37:50 +0000 (10:37 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 29 Jan 2012 18:40:10 +0000 (10:40 -0800)
commit0f65600b675e641575efaf81a71db990cebbb7d3
tree7232f825bca1c48984ef734cca31c954be5cf048
parent55af3387ef90053a10b012ffe7ae1ebee7575e01
Windows: Run Workers until empty task queue

Do not allow a worker thread to sleep until the task queue is
empty.  It is better for the running thread to pick up and process
a task then to sleep this thread and wait for another one to wake
up to perform the work.

Change-Id: I776bb9408ab054b045acb9bc003b88436cc4266b
Reviewed-on: http://gerrit.openafs.org/6626
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/kernel/lib/AFSWorker.cpp