OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-3220-g1726aec
Gerrit Code Review
gerrit@openafs.org
Sat, 22 Dec 2012 20:17:28 -0800 (PST)
The following commit has been merged in the master branch:
commit 1726aec2b2291c4b1e89e21fa0f5a27318671a6f
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date: Wed Dec 19 09:31:06 2012 -0500
Windows: Wait for all worker threads to exit
The signalling mechanism for waking and shutting down worker threads
relies upon a per-queue event. Therefore it is not guaranteed that
the worker thread that AFSShutdown*Thread() is attempting to wait
for is in fact the thread that will be woken and exit. Modify the
code to loop waking threads until the one that is being waited for
does in fact exit.
Subsequent calls to AFSShutdown*Thread() will bypass the wait if
the thread has already exited.
Change-Id: I4555df062ac5a6161b5c55f4598d1bd34e144a2b
Reviewed-on: http://gerrit.openafs.org/8783
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSWorker.cpp | 88 ++++++++++++++++-------------
1 files changed, 49 insertions(+), 39 deletions(-)
--
OpenAFS Master Repository