aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 9241d274b0..eaff139be9 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -499,6 +499,8 @@ native_thread_join(HANDLE th)
w32_wait_events(&th, 1, 0, 0);
}
+#if USE_NATIVE_THREAD_PRIORITY
+
static void
native_thread_apply_priority(rb_thread_t *th)
{
@@ -516,6 +518,8 @@ native_thread_apply_priority(rb_thread_t *th)
SetThreadPriority(th->thread_id, priority);
}
+#endif /* USE_NATIVE_THREAD_PRIORITY */
+
static void
ubf_handle(void *ptr)
{