diff options
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 026ccc4c60..9b44ceb96a 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -25,6 +25,12 @@ #define ubf_timer_disarm() do {} while (0) #define ubf_list_atfork() do {} while (0) +#define DEBUG_OUT() \ + WaitForSingleObject(&debug_mutex, INFINITE); \ + printf(POSITION_FORMAT"%#lx - %s" POSITION_ARGS, GetCurrentThreadId(), buf); \ + fflush(stdout); \ + ReleaseMutex(&debug_mutex); + static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES; static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th); |