From 781031fa6b07402d3dfa333d96394fdbfc9ab685 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 11 Apr 2005 08:28:05 +0000 Subject: '' --- tests/once4.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/once4.c') diff --git a/tests/once4.c b/tests/once4.c index 980c9fe..69e9384 100644 --- a/tests/once4.c +++ b/tests/once4.c @@ -149,6 +149,11 @@ main() printf("once thrd prio error\n"); #endif + /* + * Set the priority class to realtime - otherwise normal + * Windows random priority boosting will obscure any problems. + */ + SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS); /* Set main thread to lower prio than threads */ SetThreadPriority(GetCurrentThread(), -2); -- cgit v1.2.3