diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-04-22 19:00:51 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-04-22 19:00:51 +0000 |
commit | 086dac3dc0518572e2b498bf25768f4457eba105 (patch) | |
tree | a78231dc3f74d60d8fe3c540394a1a87f9a210d0 /lib/libc/stdio/xprintf_str.c | |
parent | 0e093d4003dfd64e9a626b7e6addc1ed61586b31 (diff) | |
download | FreeBSD-src-086dac3dc0518572e2b498bf25768f4457eba105.zip FreeBSD-src-086dac3dc0518572e2b498bf25768f4457eba105.tar.gz |
Use lwsync to provide memory barriers on systems that support it instead
of sync (lwsync is an alternate encoding of sync on systems that do not
support it, providing graceful fallback). This provides more than an order
of magnitude reduction in the time required to acquire or release a mutex.
MFC after: 2 months
Diffstat (limited to 'lib/libc/stdio/xprintf_str.c')
0 files changed, 0 insertions, 0 deletions