Commit graph

2 commits

Author SHA1 Message Date
usa
be8bdd3c57 * ext/-test-/threadswitch/threadswitch_hook.c (event_hook,
threadswitch_event_hook, restore_hook, threadswitch_hook): use
  rb_thread_current() instead of rb_curr_thread->thread, because
  the latter is not a public interface. this change fixes build
  problem on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-01 06:09:55 +00:00
nobu
f5cbe886b6 * eval.c (rb_add_threadswitch_hook): wrapper for unofficial APIs
in Mac OS X port.  the use of them is strongly discouraged.

	* eval.c (rb_remove_threadswitch_hook): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 18:00:46 +00:00