summaryrefslogtreecommitdiff
path: root/tests/once4.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-11 08:28:05 +0000
committerrpj <rpj>2005-04-11 08:28:05 +0000
commit781031fa6b07402d3dfa333d96394fdbfc9ab685 (patch)
tree84e8b5683b2e6e190620a0bfc04996d204374030 /tests/once4.c
parent5b085e54a51322522ce8d38d3139228f035a9bf4 (diff)
''
Diffstat (limited to 'tests/once4.c')
-rw-r--r--tests/once4.c5
1 files changed, 5 insertions, 0 deletions
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);