Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-04-29 00:10:54 +0400
committerChristopher Faylor <me@cgf.cx>2003-04-29 00:10:54 +0400
commit6ef342e4603b75fa789004db934c0daea53ae132 (patch)
tree371478341ba7b6b583221f2336ad2c5299082386 /winsup/cygwin/profil.c
parenteae4b2b0bc87e9de4c56fda110a9d2813cf0ddce (diff)
* profil.h (PROFADDR): Prevent overflow when text segments are larger than
256k. * profil.c (profthr_func): Raise thread priority for more accurate sampling. * path.cc (hash_path_name): Use ino_t as type.
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);