diff options
| author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-22 20:14:51 +0000 |
|---|---|---|
| committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-22 20:14:51 +0000 |
| commit | e3755c5a9ca0e877e264606e9963be6909638a80 (patch) | |
| tree | 5bf9be5e359888a490eb20cad83dc2a377faf36b /eval.c | |
| parent | ebdad95cb167e463328d144ab3d1bd2aa211d852 (diff) | |
| download | ruby-e3755c5a9ca0e877e264606e9963be6909638a80.tar.gz ruby-e3755c5a9ca0e877e264606e9963be6909638a80.tar.xz ruby-e3755c5a9ca0e877e264606e9963be6909638a80.zip | |
merge -c 12267
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -11468,10 +11468,12 @@ rb_thread_sleep_forever() /* * call-seq: * thr.priority => integer - * - * Returns the priority of <i>thr</i>. Default is zero; higher-priority threads - * will run before lower-priority threads. - * + * + * Returns the priority of <i>thr</i>. Default is inherited from the + * current thread which creating the new thread, or zero for the + * initial main thread; higher-priority threads will run before + * lower-priority threads. + * * Thread.current.priority #=> 0 */ @@ -11486,10 +11488,10 @@ rb_thread_priority(thread) /* * call-seq: * thr.priority= integer => thr - * + * * Sets the priority of <i>thr</i> to <i>integer</i>. Higher-priority threads * will run before lower-priority threads. - * + * * count1 = count2 = 0 * a = Thread.new do * loop { count1 += 1 } |
