mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
thread*.c: waiting on sigwait_fd performs periodic ubf wakeups
We need to be able to perform periodic ubf_list wakeups when a thread is sleeping and waiting on signals. [ruby-core:88088] [Misc #14937] [Bug #5343] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
95cae74817
commit
ab47a57a46
3 changed files with 92 additions and 44 deletions
|
@ -21,6 +21,7 @@
|
|||
#define native_thread_yield() Sleep(0)
|
||||
#define unregister_ubf_list(th)
|
||||
#define ubf_wakeup_all_threads() do {} while (0)
|
||||
#define ubf_threads_empty() (1)
|
||||
|
||||
static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue