DragonFly-2.3.0.610.g390e5 master lib/libc/stdtime localtime.c

Peter Avalos pavalos at crater.dragonflybsd.org
Tue Apr 7 00:13:32 PDT 2009


commit 390e5ad7ecd7e3e572158322353dd42c8c0e2691
Author: Peter Avalos <pavalos at theshell.com>
Date:   Fri Jan 16 22:37:59 2009 -0500

    Reduce lock contention for simple cases in stdtime.
    
    Normally, we are often reading local time rather than setting time zone,
    replace mutex with rwlock, this should eliminate lock contention in
    most cases.
    
    Obtained-from: FreeBSD

Summary of changes:
 lib/libc/stdtime/localtime.c |  113 ++++++++++++++++++++++++++++-------------
 1 files changed, 77 insertions(+), 36 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/390e5ad7ecd7e3e572158322353dd42c8c0e2691


-- 
DragonFly BSD source repository





More information about the Commits mailing list