List Info

Thread: Threads and IO (gets) still a problem for us?




Threads and IO (gets) still a problem for us?
user name
2007-09-27 11:41:46
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
_______________________________________________
win32utils-devel mailing list
win32utils-develrubyforge.org
http://rubyforge.org/mailman/listinfo/win32utils-devel


Re: Threads and IO (gets) still a problem for us?
user name
2007-09-27 16:43:20
On 9/27/07, Berger, Daniel <Daniel.Bergerqwest.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
_______________________________________________
win32utils-devel mailing list
win32utils-develrubyforge.org
http://rubyforge.org/mailman/listinfo/win32utils-devel


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )