From: ts Date: 2001-04-06T22:24:41+09:00 Subject: [ruby-talk:13531] 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? Well, it depend how you use it. 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. This mean that probably you can make work all examples in the directory SDL-1.2.0/test, except for testhread.c, testlock.c, testsem.c, testerror.c and torturethread.c if you use the SDL interface for the threads. Guy Decoux