tag:blogger.com,1999:blog-8882389959394402329.post5860935356618237204..comments2024-03-21T03:31:50.431-04:00Comments on Chris Lalancette: Writing Ruby Extensions in C - Part 11, Blocks and CallbacksChrishttp://www.blogger.com/profile/12412311785503355784noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8882389959394402329.post-74128981008401786802012-09-23T09:36:02.473-04:002012-09-23T09:36:02.473-04:00You are absolutely correct. I've fixed the po...You are absolutely correct. I've fixed the post now. Thanks for the update!Chrishttps://www.blogger.com/profile/12412311785503355784noreply@blogger.comtag:blogger.com,1999:blog-8882389959394402329.post-44732327155351056782012-09-22T15:01:54.097-04:002012-09-22T15:01:54.097-04:00There is an error in you code example. When you ca...There is an error in you code example. When you call rb_yield_values the first argument must be an integer that indicates the number of yield params. In you example result = rb_yield_values(3, rb_str_new2("first"), rb_str_new2("second"),rb_str_new2("third"));Piozhttps://www.blogger.com/profile/05384964617453082715noreply@blogger.comtag:blogger.com,1999:blog-8882389959394402329.post-19809021062123318612011-03-07T19:24:30.317-05:002011-03-07T19:24:30.317-05:00Could you provide an example where the async callb...Could you provide an example where the async callback works?<br /><br />Asynchronous in C means either an event-loop (which means a hassle to program in), or threads. In the latter case, the thread that calls the C callback will not hold the ruby GIL and must not issue *ANY* rb_-functions.<br /><br />Am I forgetting something?Anonymousnoreply@blogger.com