diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2021-10-28 15:51:40 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-10-30 10:18:33 +0900 |
commit | 8590d61ea9b6b91c89a14a8d0f6829c8a3a8c6c8 (patch) | |
tree | 52b07a13002406e41bc9f22c11614387650b952d /thread.c | |
parent | ccda26efe7c6acf7edd1262dd2826b8c7008ff75 (diff) |
Select including thread impl file at config time
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5043
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -349,8 +349,9 @@ ubf_sigwait(void *ignore) rb_thread_wakeup_timer_thread(0); } +#include THREAD_IMPL_SRC + #if defined(_WIN32) -#include "thread_win32.c" #define DEBUG_OUT() \ WaitForSingleObject(&debug_mutex, INFINITE); \ @@ -359,7 +360,6 @@ ubf_sigwait(void *ignore) ReleaseMutex(&debug_mutex); #elif defined(HAVE_PTHREAD_H) -#include "thread_pthread.c" #define DEBUG_OUT() \ pthread_mutex_lock(&debug_mutex); \ @@ -368,8 +368,6 @@ ubf_sigwait(void *ignore) fflush(stdout); \ pthread_mutex_unlock(&debug_mutex); -#else -#error "unsupported thread type" #endif /* |