[macruby-changes] [1323] MacRuby/branches/experimental/thread.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 3 23:27:05 PDT 2009


Revision: 1323
          http://trac.macosforge.org/projects/ruby/changeset/1323
Author:   lsansonetti at apple.com
Date:     2009-04-03 23:27:05 -0700 (Fri, 03 Apr 2009)
Log Message:
-----------
expose Thread.current (even if it returns nil)

Modified Paths:
--------------
    MacRuby/branches/experimental/thread.c

Modified: MacRuby/branches/experimental/thread.c
===================================================================
--- MacRuby/branches/experimental/thread.c	2009-04-04 06:26:47 UTC (rev 1322)
+++ MacRuby/branches/experimental/thread.c	2009-04-04 06:27:05 UTC (rev 1323)
@@ -1196,7 +1196,7 @@
     rb_define_singleton_method(rb_cThread, "start", thread_start, -2);
     rb_define_singleton_method(rb_cThread, "fork", thread_start, -2);
     rb_define_singleton_method(rb_cThread, "main", rb_thread_s_main, 0);
-    rb_define_singleton_method(rb_cThread, "current", thread_s_current, 0);
+    rb_objc_define_method(*(VALUE *)rb_cThread, "current", thread_s_current, 0);
     rb_define_singleton_method(rb_cThread, "stop", rb_thread_stop, 0);
     rb_define_singleton_method(rb_cThread, "kill", rb_thread_s_kill, 1);
     rb_define_singleton_method(rb_cThread, "exit", rb_thread_exit, 0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090403/4c56b258/attachment.html>


More information about the macruby-changes mailing list