cvs commit: projects/csup mux.c mux.h
Maxime Henrion
mux at FreeBSD.org
Tue Feb 21 10:37:41 PST 2006
mux 2006-02-21 18:37:35 UTC
FreeBSD projects repository
Modified files:
csup mux.c mux.h
Log:
- Export the mux_shutdown() function for external use.
- In mux_shutdown(), keep the multiplexer lock when printing error
messages from the receiver or sender threads, in order to avoid
unordered messages.
- Also in mux_shutdown(), do not access m->sender or m->receiver when
we don't own the lock. It should not be a problem since those are
supposed to stay unchanged, but it's better style to copy them and
use the copy when unlocked. And avoid determining which thread we
are two times in a row.
Revision Changes Path
1.67 +20 -19 projects/csup/mux.c
1.24 +2 -1 projects/csup/mux.h
More information about the cvs-all
mailing list