From: Suraj Kurapati Date: 2010-05-26T04:26:03+09:00 Subject: [ruby-core:30422] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine Issue #2294 has been updated by Suraj Kurapati. Hi Nobu, I combined the various coroutine library examples into a single one: http://github.com/sunaku/ruby-coroutine-example You can run the example like this: # libpcl sh run.sh pcl static path_to_your_ruby_svn_trunk_installation sh run.sh pcl dynamic path_to_your_ruby_svn_trunk_installation # POSIX threads sh run.sh pthread static path_to_your_ruby_svn_trunk_installation sh run.sh pthread dynamic path_to_your_ruby_svn_trunk_installation # System V contexts sh run.sh ucontext static path_to_your_ruby_svn_trunk_installation sh run.sh ucontext dynamic path_to_your_ruby_svn_trunk_installation I tried this on ruby 1.9.3dev (2010-05-25 trunk 28007) [i686-linux] with my ruby_bind_stack patch applied and observed that the patch is still necessary to make this example work. You can actually test multiple Ruby versions by passing: sh run.sh ... ~/.multiruby/install/* Please retry this example when you have a chance. Thanks for your consideration. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2294 ---------------------------------------- http://redmine.ruby-lang.org