diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-02-04 12:25:13 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-02-04 12:25:13 +0000 |
commit | f23198af5c5d671548e3ad76cf9a569dbc55bd0d (patch) | |
tree | 07b631ecc21ddad4957ba8b20d818e81af4c6e1f /lib/libthr/thread/thr_mutex.c | |
parent | ce24cd825a8e9934cab77ec673e88f417d5afab1 (diff) | |
download | FreeBSD-src-f23198af5c5d671548e3ad76cf9a569dbc55bd0d.zip FreeBSD-src-f23198af5c5d671548e3ad76cf9a569dbc55bd0d.tar.gz |
Further clean up sorflush:
- Expose sbrelease_internal(), a variant of sbrelease() with no
expectations about the validity of locks in the socket buffer.
- Use sbrelease_internel() in sorflush(), and as a result avoid intializing
and destroying a socket buffer lock for the temporary stack copy of the
actual buffer, asb.
- Add a comment indicating why we do what we do, and remove an XXX since
things have gotten less ugly in sorflush() lately.
This makes socket close cleaner, and possibly also marginally faster.
MFC after: 3 weeks
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
0 files changed, 0 insertions, 0 deletions