Date: Tue, 21 Feb 2006 18:37:35 +0000 (UTC) From: Maxime Henrion <mux@FreeBSD.org> To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: projects/csup mux.c mux.h Message-ID: <200602211837.k1LIbZfl057507@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602211837.k1LIbZfl057507>