Reduce lock contention for simple cases in stdtime.
authorPeter Avalos <pavalos@theshell.com>
Sat, 17 Jan 2009 03:37:59 +0000 (22:37 -0500)
committerPeter Avalos <pavalos@theshell.com>
Tue, 7 Apr 2009 07:08:54 +0000 (21:08 -1000)
commit390e5ad7ecd7e3e572158322353dd42c8c0e2691
tree5f036cdbb91f105bcb37f3be59d4a2a4446f1c2e
parent802427dfebeabc8562d7f8ca5d0dafea808cabbe
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
lib/libc/stdtime/localtime.c