threads update for more warning msgs and

to save thread enabled status to gb.conf.
This commit is contained in:
Matt Wells
2014-10-02 16:11:51 -07:00
parent 2256c1fdba
commit dc5b1408bc
2 changed files with 15 additions and 3 deletions

@ -4049,6 +4049,18 @@ bool printRedBox ( SafeBuf *mb , TcpSocket *sock , HttpRequest *hr ) {
mb->safePrintf("%s",boxEnd);
}
if ( ! g_conf.m_useThreadsForSystemCalls ) {
if ( adds ) mb->safePrintf("<br>");
adds++;
mb->safePrintf("%s",box);
mb->safePrintf("Threads for system calls are disabled. "
"Might hurt performance because these "
"are calls to "
"3rd party executables and "
"can take a long time to run, like pdf2html.");
mb->safePrintf("%s",boxEnd);
}
mb->safePrintf("</div>");
return (bool)adds;

@ -12049,7 +12049,7 @@ void Parms::init ( ) {
m->m_off = (char *)&g_conf.m_useThreadsForDisk - g;
m->m_type = TYPE_BOOL;
m->m_def = "0";
m->m_flags = PF_NOSAVE;
m->m_flags = 0;//PF_NOSAVE;
m->m_page = PAGE_MASTER;
m->m_obj = OBJ_CONF;
m++;
@ -12061,7 +12061,7 @@ void Parms::init ( ) {
m->m_off = (char *)&g_conf.m_useThreadsForIndexOps - g;
m->m_type = TYPE_BOOL;
m->m_def = "0";
m->m_flags = PF_NOSAVE;
m->m_flags = 0;//PF_NOSAVE;
m->m_page = PAGE_MASTER;
m->m_obj = OBJ_CONF;
m->m_group = 0;
@ -12074,7 +12074,7 @@ void Parms::init ( ) {
m->m_off = (char *)&g_conf.m_useThreadsForSystemCalls - g;
m->m_type = TYPE_BOOL;
m->m_def = "1";
m->m_flags = PF_NOSAVE;
m->m_flags = 0;//PF_NOSAVE;
m->m_page = PAGE_MASTER;
m->m_obj = OBJ_CONF;
m->m_group = 0;