29c Subj : Re: recursive mutexes To : comp.programming.threads From : Uenal Mutlu Date : Fri May 20 2005 11:24 pm "David Schwartz" wrote > > "David Holmes" wrote > > > "David Schwartz" wrote in message > > >> I'm afraid that's not true. A typical recursive unlock will need one > >> interlocked operation to figure out whether it has to wake other threads > > or > >> not followed by waking the threads if necessary. > > > > Why would a *recursive* unlock need to wake anyone? > > As I said, assuming it's the last unlock. Wake not necessary at all (at least in my implementations of both recursive and non-recursive mutex methods). . 0