Re: The workings of the pthreads ufs patch

2012-08-15 Thread Richard Braun
On Tue, Aug 14, 2012 at 01:01:03PM -0700, Thomas DiModica wrote: > Richard, if you wish to remove this optimization for the sake of clarity, be > my guest. I was just trying to be faithful to the working of the original > code. I won't remove it for two reasons: first, it looks indeed faithful to

The workings of the pthreads ufs patch

2012-08-14 Thread Thomas DiModica
I'm CCing this to bug-hurd. So, this is the long version of what my pthreads patch to ufs does. If anyone finds my beliefs to be in error, please speak up. I will begin by describing how a cthread rwlock worked, in brief. Inside the cthread rwlock, there is a condition that all waiters sleep on.