diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2022-01-16 00:37:09 +0900 |
---|---|---|
committer | Yuta Saito <kateinoigakukun@gmail.com> | 2022-01-19 11:19:06 +0900 |
commit | d6d52a7d049fd802b37d0f594629bad2cdc6b8c2 (patch) | |
tree | b6f0efdba5823ace0919289ba8a4e7a06adf8b35 /thread.c | |
parent | bf1c4d254beb0e01fac1d9e6cb805de8ec6260eb (diff) | |
download | ruby-d6d52a7d049fd802b37d0f594629bad2cdc6b8c2.tar.gz |
thread.c: put platform specific part in each impl file
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -351,25 +351,6 @@ ubf_sigwait(void *ignore) #include THREAD_IMPL_SRC -#if defined(_WIN32) - -#define DEBUG_OUT() \ - WaitForSingleObject(&debug_mutex, INFINITE); \ - printf(POSITION_FORMAT"%#lx - %s" POSITION_ARGS, GetCurrentThreadId(), buf); \ - fflush(stdout); \ - ReleaseMutex(&debug_mutex); - -#elif defined(HAVE_PTHREAD_H) - -#define DEBUG_OUT() \ - pthread_mutex_lock(&debug_mutex); \ - printf(POSITION_FORMAT"%"PRI_THREAD_ID" - %s" POSITION_ARGS, \ - fill_thread_id_string(pthread_self(), thread_id_string), buf); \ - fflush(stdout); \ - pthread_mutex_unlock(&debug_mutex); - -#endif - /* * TODO: somebody with win32 knowledge should be able to get rid of * timer-thread by busy-waiting on signals. And it should be possible |