Date: Sat, 17 Mar 2007 21:33:07 -0800 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: Max Laier <max@love2party.net> Cc: freebsd-threads@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Multithreaded qsort(3) Message-ID: <20070318053307.GC73385@funkthat.com> In-Reply-To: <200703151827.39963.max@love2party.net> References: <45F906ED.8070100@aueb.gr> <200703151827.39963.max@love2party.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Max Laier wrote this message on Thu, Mar 15, 2007 at 18:27 +0100: > I'd suggest to name it qsort() and put it in a separate library (not > necessarily named libc_mt, as I don't believe there are that many > functions in libc, that can actually gain from multithreading). What happens when you attempt to link a library that uses qsort, but isn't multi-thread safe? You may be able to protect calls to the library w/ a lock, but then when it calls qsort, the library would break.. Keeping the qsort name sounds ripe for problems down the road... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070318053307.GC73385>