From 16612b360b376d0cb3f50f966e2e671cf80fdc25 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 13 Aug 2008 07:53:35 +0000 Subject: * 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 --- thread_win32.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'thread_win32.c') diff --git a/thread_win32.c b/thread_win32.c index 9241d274b0..eaff139be9 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -499,6 +499,8 @@ native_thread_join(HANDLE th) w32_wait_events(&th, 1, 0, 0); } +#if USE_NATIVE_THREAD_PRIORITY + static void native_thread_apply_priority(rb_thread_t *th) { @@ -516,6 +518,8 @@ native_thread_apply_priority(rb_thread_t *th) SetThreadPriority(th->thread_id, priority); } +#endif /* USE_NATIVE_THREAD_PRIORITY */ + static void ubf_handle(void *ptr) { -- cgit v1.2.3