From attila.lendvai at gmail.com Fri Oct 26 12:16:40 2007 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Fri, 26 Oct 2007 14:16:40 +0200 Subject: [Bordeaux-threads-devel] with-thread-name Message-ID: hi! i've got a macro that i need for debugging code and i think it would be useful for b-t. it's called with-thread-name, that appends the given string to the thread's name and restores the old name in an unwind-protect. it's useful when you have 10 nodes with 25 threads each and need to debug stuff like sbcl hanging in CLOSE on a socket. if you like the idea i can move it into b-t and package up as a darcs patch. -- attila From greg at technomadic.org Tue Oct 30 18:05:59 2007 From: greg at technomadic.org (Greg Pfeil) Date: Tue, 30 Oct 2007 14:05:59 -0400 Subject: [Bordeaux-threads-devel] with-thread-name In-Reply-To: References: Message-ID: <5B2B57DC-B739-436D-A884-693DA83895BE@technomadic.org> On 26 Oct 2007, at 08:16, Attila Lendvai wrote: > hi! > > i've got a macro that i need for debugging code and i think it would > be useful for b-t. it's called with-thread-name, that appends the > given string to the thread's name and restores the old name in an > unwind-protect. > > it's useful when you have 10 nodes with 25 threads each and need to > debug stuff like sbcl hanging in CLOSE on a socket. > > if you like the idea i can move it into b-t and package up as a > darcs patch. I had originally envisioned B-T as the most basic level of threading capability. Only provide enough so that implementation-specific code doesn't ever need to be called. However, there have been enough of these little helpers that don't really have anywhere else to go. It seems reasonable that they should be included in B-T somewhere. I think a patch that adds a new file that gets loaded after the implementation-specific file would be good. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: