From: Guilhem Bichot Date: October 11 2008 5:05pm Subject: Re: timeout of waiting_threads-t on Windows List-Archive: http://lists.mysql.com/maria/207 Message-Id: <48F0DCF7.4060108@mysql.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Hi, 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 > http://www.opengroup.org/onlinepubs/009695399/functions/pthread_cond_wait.html > > 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.