From 97765808e4b5bf7a5fac3ee3eb66ce9da0526c52 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 24 Aug 2007 15:26:28 +0000 Subject: * prelude.rb: added. run this script on startup. * tool/compile_prelude.rb: compile prelude.rb to C string. (prelude.rb -> prelude.c) * common.mk: fix to build with prelude.c. * inits.c (rb_call_inits): ditto. * thread.c (Init_Thread): move definition of Mutex#synchronize to prelude.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 9a20254c6..cedfcbea4 100644 --- a/thread.c +++ b/thread.c @@ -2968,12 +2968,6 @@ Init_Thread(void) rb_define_method(rb_cMutex, "unlock", rb_mutex_unlock, 0); rb_define_method(rb_cMutex, "sleep", mutex_sleep, -1); - rb_iseq_eval(rb_iseq_compile( - rb_str_new2("class Mutex;" - " def synchronize; self.lock; yield; ensure; self.unlock; end;" - "end;"), - rb_str_new2(__FILE__), INT2FIX(__LINE__))); - recursive_key = rb_intern("__recursive_key__"); rb_eThreadError = rb_define_class("ThreadError", rb_eStandardError); -- cgit