called SetThreadPriority()

This commit is contained in:
hyunghwan.chung
2018-11-26 04:12:55 +00:00
parent 53ec5b1c33
commit eff7ad9c74
5 changed files with 7 additions and 20 deletions

View File

@ -404,7 +404,6 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@

View File

@ -2805,6 +2805,8 @@ static MOO_INLINE void start_ticker (void)
thr = CreateThread(MOO_NULL, 0, msw_wait_for_timer_event, MOO_NULL, 0, MOO_NULL);
if (thr)
{
SetThreadPriority (thr, THREAD_PRIORITY_HIGHEST);
/* MSDN - The thread object remains in the system until the thread has terminated
* and all handles to it have been closed through a call to CloseHandle.
* it is safe to close the handle here */