diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-29 05:31:00 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-29 05:31:00 +0000 |
commit | fbad5b97e8a42304b73b6141b57fb8ac45565ec2 (patch) | |
tree | b9adfb254da0a4b31ef2ef5280088d9cd95c54cc /thread_win32.c | |
parent | bf8cc37b467e1d372e1b01b4d25e9ef6f8cc927f (diff) |
merge revision(s) 66708: [Backport #15499]
thread.c (call_without_gvl): spawn thread for UBF iff single-threaded
We need another native thread to call some unblocking functions
which aren't RUBY_UBF_IO or RUBY_UBF_PROCESS. Instead of a
permanent thread in <= 2.5, we can now rely on the thread cache
feature to perform interrupts.
[ruby-core:90865] [Bug #15499]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c index d4db9e3824..545d0dd35b 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -708,6 +708,12 @@ rb_thread_wakeup_timer_thread(int sig) /* do nothing */ } +static VALUE +rb_thread_start_unblock_thread(void) +{ + return Qfalse; /* no-op */ +} + static void rb_thread_create_timer_thread(void) { |