summaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 07:53:35 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 07:53:35 +0000
commit1398573684c84f6902cb874e176abe9ffd4a6a4d (patch)
tree862a67a25748334d49fedad72e9a848376b22837 /vm_core.h
parent8cf87d1be1081f41281f7cb7c32e5269e14043c1 (diff)
downloadruby-1398573684c84f6902cb874e176abe9ffd4a6a4d.tar.gz
ruby-1398573684c84f6902cb874e176abe9ffd4a6a4d.tar.xz
ruby-1398573684c84f6902cb874e176abe9ffd4a6a4d.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@18570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 25017cdab..829ac4593 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -432,6 +432,7 @@ struct rb_thread_struct
rb_thread_id_t thread_id;
enum rb_thread_status status;
int priority;
+ int slice;
native_thread_data_t native_thread_data;