Luis Lavena
2007-Sep-27 16:41 UTC
[Win32utils-devel] Threads and IO (gets) still a problem for us?
Hello Guys, I''m trying to get this working: t = Thread.new { while true puts "printing a line" sleep 2 end } gets t.exit puts "exiting" As you see, the idea is get multiple "printing a line" until a hit enter. The thing is this is a known problem for 1.8 on win32. I tried both mingw, VC6 and VC8 with the same results. Saw a post from Park Heesob patching this in 2003... but for 1.8.1. Should the new WinRuby propose a solution for this? :-D Just droping a new bomb on the battle field :-) In the meantime, there is a non-accepted patch for this? Park? Thanks in advance, -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
Berger, Daniel
2007-Sep-27 19:19 UTC
[Win32utils-devel] Threads and IO (gets) still a problem for us?
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Luis Lavena > Sent: Thursday, September 27, 2007 10:42 AM > To: Development and ideas for win32utils projects > Subject: [Win32utils-devel] Threads and IO (gets) still a > problem for us? > > > Hello Guys, > > I''m trying to get this working: > > t = Thread.new { > while true > puts "printing a line" > sleep 2 > end > } > > gets > t.exit > puts "exiting" > > As you see, the idea is get multiple "printing a line" until > a hit enter. > > The thing is this is a known problem for 1.8 on win32. > > I tried both mingw, VC6 and VC8 with the same results. > > Saw a post from Park Heesob patching this in 2003... but for 1.8.1. > > Should the new WinRuby propose a solution for this? :-DFixing Kernel#select for Windows is one of the goals. :) Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
Luis Lavena
2007-Sep-27 21:43 UTC
[Win32utils-devel] Threads and IO (gets) still a problem for us?
On 9/27/07, Berger, Daniel <Daniel.Berger at qwest.com> wrote:> > Fixing Kernel#select for Windows is one of the goals. :) >Good to know :-) btw, you didn''t replied about my willing to share the partial dependency nightmare solution for Ruby 1.8.6 under VC8. -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi