More set thread priority tweaking:

1. Move SETMODE calls into hthreads functions.
2. Issue message that identifies source statement that failed.
This commit is contained in:
Fish (David B. Trout)
2014-01-13 02:01:39 -08:00
parent 3e563eab7c
commit 0316c4f294
16 changed files with 46 additions and 174 deletions

View File

@@ -807,15 +807,8 @@ struct timeval timeout; /* timeout value */
hdl_adsc("http_shutdown",http_shutdown, NULL);
/* Set root mode in order to set priority */
SETMODE(ROOT);
/* Set server thread priority; ignore any errors */
if(set_thread_priority(0, sysblk.srvprio))
WRMSG(HHC00136, "W", "set_thread_priority()", strerror(errno));
/* Back to user mode */
SETMODE(USER);
set_thread_priority(0, sysblk.srvprio);
/* Display thread started message on control panel */
WRMSG (HHC00100, "I", thread_id(), get_thread_priority(0), "HTTP server");