From: "QUEISSER,ANDREW (HP-Corvallis,ex1)" Date: 2002-04-05T01:24:10+09:00 Subject: RE: File change notification? > At Thu, 28 Mar 2002 02:33:06 +0900, > QUEISSER,ANDREW (HP-Corvallis,ex1) wrote: > > For future refinement I have one follow-on question: can I build > > an extension DLL that creates it's own NT thread which would block > > on the change notification handle? Can the NT thread signal a > > blocked Ruby thread waiting on a mutex? I suppose the answers must > > be 'yes' but I'm not sure if I'm overlooking something. > > "Yes" for first question, and "not impossible but difficult" > for next one. Now win32(mswin32 and mingw32) ruby uses > select() in Winsock2, but it can use socket handle only, so > normal win32 thread synchronization mechanisms can't be used. > > -- > Nobu Nakada > Nobu, Not sure I understand. What's the connection between the select() and the ability to wake up a Ruby thread? Or is it fundamentally difficult to have one Win32 thread communicate with the main Ruby thread? Andrew