Hans Petter Selasky wrote this message on Fri, Apr 27, 2007 at 07:50 +0200: > On Thursday 26 April 2007 23:52, Bosko Milekic wrote: > > On 4/26/07, Hans Petter Selasky <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > In the new USB stack I have defined the following: > > > > Could you perhaps describe some of the codepaths in the USB stack that > > require this behavior? > > There are no requirements for that. It is just for the convenience of unwary > USB device driver developers.
The reason we have restrictions on such things as prevention of recursion on mutexes is for the convenience of the unwary developer so they don't do something stupid, and not realize it till it's causing bugs... Multithreaded programming is hard, and even w/ the power of witness, is still hard to get right, and we need to help capable programmers not make mistakes... There is always ugen if the driver developer doesn't want to deal w/ making their driver multithread safe... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"