From: Danny van Bruggen Date: 2001-04-06T22:50:28+09:00 Subject: [ruby-talk:13532] Re: Wrapping library that uses pthread > >>>>> "D" == Danny van Bruggen writes: > > D> I'm writing a Ruby interface for SDL, but I can't go on right now because > D> SDL uses pthreads. When I run a Ruby-script on a platform with pthread > D> support, it will wait forever with a blocking thread. Is anything known > D> about Ruby that might cause this? > > If you try to use explicitely pthread in your extension, by a call to > pthread_create() or SDL_CreateThread, you'll have a problem otherwise it > can work. I'm avoiding everything pthread, since Ruby has its own threads. However, SDL insists on using a pthread for event handling on systems that support this (like Linux) - I also asked the SDL list if that can be avoided, but maybe it's Ruby that's causing the problem? Bye!