mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c, vm_core.h: add manual priority support
using time slice. if you enable USE_NATIVE_THREAD_PRIORITY macro, this mechanism is ignored. [ruby-dev:33124] * thread_pthread.c, thread_win32.c: ditto. * test/ruby/test_thread.rb: fix test parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81719aff65
commit
16612b360b
6 changed files with 59 additions and 2 deletions
|
@ -126,7 +126,7 @@ class TestThread < Test::Unit::TestCase
|
|||
sleep 0.5
|
||||
t1.kill
|
||||
t2.kill
|
||||
assert(c1 > c2 * 2, "[ruby-dev:33124]")
|
||||
assert(c1 > c2 * 1.5, "[ruby-dev:33124]")
|
||||
end
|
||||
|
||||
def test_new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue