correct set priority handling

This commit is contained in:
Fish (David B. Trout)
2014-01-03 13:54:14 -08:00
parent d29545f2a8
commit a7c8ce6ce8
27 changed files with 449 additions and 286 deletions

4
hao.c
View File

@@ -522,7 +522,7 @@ static void* hao_thread(void* dummy)
return NULL;
}
WRMSG(HHC00100, "I", (u_long)thread_id(), getpriority(PRIO_PROCESS,0), "Hercules Automatic Operator");
WRMSG(HHC00100, "I", thread_id(), get_thread_priority(0), "Hercules Automatic Operator");
/* Wait for panel thread to engage */
/* Do until shutdown */
@@ -561,7 +561,7 @@ static void* hao_thread(void* dummy)
}
}
WRMSG(HHC00101, "I", (u_long)thread_id(), getpriority(PRIO_PROCESS,0), "Hercules Automatic Operator");
WRMSG(HHC00101, "I", thread_id(), get_thread_priority(0), "Hercules Automatic Operator");
return NULL;
}