diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 07:53:35 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 07:53:35 +0000 |
commit | 16612b360b376d0cb3f50f966e2e671cf80fdc25 (patch) | |
tree | 862a67a25748334d49fedad72e9a848376b22837 /thread_pthread.c | |
parent | 81719aff65dba5b72d14ad39eb851301bfd995a3 (diff) |
* 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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index bf3dd96bad..0f8214416a 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -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) { |