OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1376-g8adf4cd

Gerrit Code Review gerrit@openafs.org
Wed, 13 Jul 2011 09:55:58 -0700 (PDT)


The following commit has been merged in the master branch:
commit 8adf4cd0b0ae319b9610cd5caad050f973200ca7
Author: Garrett Wollman <wollman@csail.mit.edu>
Date:   Mon Jul 11 06:31:41 2011 -0400

    util: introduce a common interface for setting thread names
    
    A previous change added support for setting thread names/titles to
    viced; this change moves the #ifdef spaghetti to src/util in
    preparation for calling it from other places where it would be
    useful.  Two functions are defined, one for setting an arbitrary
    thread's name (as might be done by the spawning thread) and one
    for setting the current thread's name; the latter is also defined as
    a macro for non-pthreads compilations so that it can be called
    unconditionally (the interface does not reference any
    pthread-specific data types).  Note that some platforms, Mac OS X
    in particular, do not allow setting the name of a different thread.
    
    The two functions are defined as no-ops for Windows as our pthreads
    emulation layer for Windows does not provide the needed mechanism.
    
    Make viced use the new interface.
    
    Change-Id: I58c65a28772d8d188c03d6ff3a6f052889362fb7
    Reviewed-on: http://gerrit.openafs.org/4966
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>

 acinclude.m4                  |   33 ++++++++++++++++++++++++++++++
 src/util/Makefile.in          |    9 +++++++-
 src/util/afsutil_prototypes.h |   14 +++++++++++++
 src/util/pthread_threadname.c |   44 +++++++++++++++++++++++++++++++++++++++++
 src/viced/viced.c             |   12 +----------
 5 files changed, 100 insertions(+), 12 deletions(-)

-- 
OpenAFS Master Repository