Forum: Ruby embedding ruby + pthread

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Joe Van D. (Guest)
on 2006-01-09 23:43
(Received via mailing list)
I have a C executable that I'm embedding a Ruby GUI (using ruby-gnome2)

The GUI needs to run in it's own thread.

Are there any pitfalls I should be aware of?  I'm currently using

(I'm asking because my application segfaults on start half the time
right when the Ruby GUI launches and I'm trying to track down causes.)

Do I need to build Ruby with pthread?  Doing a ldd on the Ruby
interpreter reported: => /usr/lib/ (0x003c3000) => /lib/ (0x00111000) => /lib/ (0x00e35000) => /lib/tls/ (0x0080c000) => /lib/tls/ (0x00114000)
        /lib/ => /lib/ (0x005ea000)

(and I don't see pthread in there)
ts (Guest)
on 2006-01-10 14:07
(Received via mailing list)
>>>>> "J" == Joe Van D. <removed_email_address@domain.invalid> writes:

J> Do I need to build Ruby with pthread?

 it's best if you don't want to have surprise ...

 see [ruby-core:4440]

Guy Decoux
This topic is locked and can not be replied to.