diff options
author | Samuel Williams <[email protected]> | 2020-05-14 22:10:55 +1200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-14 22:10:55 +1200 |
commit | 0e3b0fcdba70cf96a8e0654eb8f50aacb8024bd4 (patch) | |
tree | 74d381412dfd8ff49dd3039f8aeae09ad9e4e6e3 /vm_core.h | |
parent | 336119dfc5e6baae0a936d6feae780a61975479c (diff) |
Thread scheduler for light weight concurrency.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3032
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -969,13 +969,15 @@ typedef struct rb_thread_struct { rb_fiber_t *root_fiber; rb_jmpbuf_t root_jmpbuf; + VALUE scheduler; + unsigned blocking; + /* misc */ VALUE name; #ifdef USE_SIGALTSTACK void *altstack; #endif - } rb_thread_t; typedef enum { |