summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/profil.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/profil.c')
-rw-r--r--winsup/cygwin/profil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/profil.c b/winsup/cygwin/profil.c
index 7be0839b2..cbfffc1b2 100644
--- a/winsup/cygwin/profil.c
+++ b/winsup/cygwin/profil.c
@@ -62,6 +62,8 @@ profthr_func (LPVOID arg)
struct profinfo *p = (struct profinfo *) arg;
u_long pc, idx;
+ SetThreadPriority(p->profthr, THREAD_PRIORITY_TIME_CRITICAL);
+
for (;;)
{
pc = (u_long) get_thrpc (p->targthr);