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
|
@ -443,6 +443,9 @@ native_thread_join(pthread_t th)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#if USE_NATIVE_THREAD_PRIORITY
|
||||
|
||||
static void
|
||||
native_thread_apply_priority(rb_thread_t *th)
|
||||
{
|
||||
|
@ -469,6 +472,8 @@ native_thread_apply_priority(rb_thread_t *th)
|
|||
#endif
|
||||
}
|
||||
|
||||
#endif /* USE_NATIVE_THREAD_PRIORITY */
|
||||
|
||||
static void
|
||||
ubf_pthread_cond_signal(void *ptr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue