diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 07:52:39 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 07:52:39 +0000 |
| commit | 71dfb2e4b64281e591a3c0fd0e64bb0600317644 (patch) | |
| tree | 977f6decc33f1d863a87d6714b026e8df912dd4c /thread.c | |
| parent | 115f79a12e159f2c470d4b77d6b925613ea63fba (diff) | |
| download | ruby-71dfb2e4b64281e591a3c0fd0e64bb0600317644.tar.gz ruby-71dfb2e4b64281e591a3c0fd0e64bb0600317644.tar.xz ruby-71dfb2e4b64281e591a3c0fd0e64bb0600317644.zip | |
enable several rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
| -rw-r--r-- | thread.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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 <code>Thread::new</code>. However, if class - * <code>Thread</code> is subclassed, then calling <code>start</code> in that - * subclass will not invoke the subclass's <code>initialize</code> 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 <code>Thread::new</code>. However, if class + * <code>Thread</code> is subclassed, then calling <code>start</code> in that + * subclass will not invoke the subclass's <code>initialize</code> 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) { |
