mattn / mruby-uv

interface to libuv for mruby(experimental)
http://mattn.kaoriya.net/
92 stars 25 forks source link

Threading segfaults #13

Open georgi opened 11 years ago

georgi commented 11 years ago

Are threads supposed to work?

This code triggers a segmentation fault:

t1 = UV::Thread.new do
  puts "Thread 1"
end

t2 = UV::Thread.new do
  puts "Thread 2"
end

t1.join
t2.join
mattn commented 11 years ago

Thanks your interesting, But UV::Thread is experimental implement.

If you want to use thread on mruby, try https://github.com/mattn/mruby-thread