Guilhem Bichot a écrit :
> Still I noticed something: tens of threads are in
> res= wt_thd_cond_timedwait(& thds[id].thd, &lock);
> (waiting_threads-t.c:103) at the same moment. That means that they call
> pthread_cond_timedwait() with different conditions but with the same
> single mutex (the "lock" global one).
> I know that at least one cond with multiple mutexes is forbidden
> but here it's the opposite situation...
Which must be ok as page cache does this too.
Next thing I'll do, add owner info to rwlock struct on Windows, to know
who is blocking.