summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sem.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-02-03 04:55:24 +0000
committerrwatson <rwatson@FreeBSD.org>2004-02-03 04:55:24 +0000
commit37cfec7fef79ccd483161561cccdda547b0b5cd3 (patch)
tree5e048c8e8b10f39eaa5673b38b920ef9511ed3c0 /sys/kern/uipc_sem.c
parent8ec8ff7672ef4b6b99e145cdd609754f9c4cbb17 (diff)
downloadFreeBSD-src-37cfec7fef79ccd483161561cccdda547b0b5cd3.zip
FreeBSD-src-37cfec7fef79ccd483161561cccdda547b0b5cd3.tar.gz
Don't dec/inc the amountpipes counter every time we resize a pipe --
instead, just dec/inc in the ctor/dtor. For now, increment/decrement in two's, since we're now performing the operation once per pair, not once per pipe. Not really any measurable performance change in my micro-benchmarks, but doing less work is good, especially when it comes to atomic operations. Suggested by: alc
Diffstat (limited to 'sys/kern/uipc_sem.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud