Subj : Re: Win32 condition variables & MySQL To : comp.programming.threads From : d|dq Date : Fri Aug 12 2005 09:20 pm Joe Seigh wrote: > d|dq wrote: > >> To my surprise, today, I realized MySQL uses the following technique: >> > [...] > > You shouldn't be suprised by now. :) > > Joe, In your code of Feb 14 2003: http://groups-beta.google.com/group/comp.programming.threads/tree/browse_frm/thread/dec4902c7f6cd24a/09cf7867c13854a7?rnum=21&hl=en&_done=%2Fgroup%2Fcomp.programming.threads%2Fbrowse_frm%2Fthread%2Fdec4902c7f6cd24a%3F#doc_1546cac7cd68c5fc I don't know what algorithm you are actually using. Is it documented somewhere or did you make it up? I need to educate myself because I don't fully understand the roles of the following items: typedef struct waitset_tt { struct waitset_tt *next; LONG refCount; ^^^^^^^^^^^^^^ LONG waitCount; LONG deferCount; ^^^^^^^^^^^^^^^^ HANDLE sem; } waitset_t; typedef struct { qfree_t *fq; waitset_t *waitset1; ^^^^^^^^^^^^^^^^^^^^ waitset_t *waitset2; ^^^^^^^^^^^^^^^^^^^^ CRITICAL_SECTION cs; condattr_t attr; } cond_t; Could you point me to some reading materials or put me in the right direction in any way? .