summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 07:52:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 07:52:39 +0000
commite01c045a8b97de161ca74ddf417a58bb5b1e9424 (patch)
tree977f6decc33f1d863a87d6714b026e8df912dd4c /thread.c
parenta3bfedac36e946790c966c0319765479df770e4b (diff)
enable several rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/thread.c b/thread.c
index 01a39d70b5..5fd2033f08 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 <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)
{