From 71dfb2e4b64281e591a3c0fd0e64bb0600317644 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 24 Dec 2007 07:52:39 +0000 Subject: enable several rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 01a39d70b..5fd2033f0 100644 --- a/thread.c +++ b/thread.c @@ -393,16 +393,6 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS)) return thval; } -/* - * call-seq: - * Thread.start([args]*) {|args| block } => thread - * Thread.fork([args]*) {|args| block } => thread - * - * Basically the same as Thread::new. However, if class - * Thread is subclassed, then calling start in that - * subclass will not invoke the subclass's initialize method. - */ - static VALUE thread_s_new(int argc, VALUE *argv, VALUE klass) { @@ -417,6 +407,16 @@ thread_s_new(int argc, VALUE *argv, VALUE klass) return thread; } +/* + * call-seq: + * Thread.start([args]*) {|args| block } => thread + * Thread.fork([args]*) {|args| block } => thread + * + * Basically the same as Thread::new. However, if class + * Thread is subclassed, then calling start in that + * subclass will not invoke the subclass's initialize method. + */ + static VALUE thread_start(VALUE klass, VALUE args) { @@ -2799,6 +2799,8 @@ rb_clear_trace_func(void) rb_remove_event_hook(0); } +static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALUE klass); + /* * call-seq: * set_trace_func(proc) => proc @@ -2842,8 +2844,6 @@ rb_clear_trace_func(void) * return prog.rb:4 test Test */ -static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALUE klass); - static VALUE set_trace_func(VALUE obj, VALUE trace) { -- cgit