static void
do_fast_reload(RES* ssl, struct worker* worker, struct rc_state* s)
{
+#ifdef THREADS_DISABLED
+ if(!ssl_printf(ssl, "error: no threads for fast_reload, compiled without threads.\n"))
+ return;
+ (void)worker;
+ (void)s;
+#else
if(!ssl_printf(ssl, "start fast_reload\n"))
return;
fast_reload_thread_start(ssl, worker, s);
+#endif
}
/** do the verbosity command */
return "unknown";
}
+#ifndef THREADS_DISABLED
/** fast reload, poll for notification incoming. True if quit */
static int
fr_poll_for_quit(struct fast_reload_thread* fr)
}
}
-#ifndef THREADS_DISABLED
/** fast reload thread queue up text string for output */
static int
fr_output_text(struct fast_reload_thread* fr, const char* msg)
return 0;
}
+#ifndef THREADS_DISABLED
/** fast reload printq create */
static struct fast_reload_printq*
fr_printq_create(struct comm_point* c, struct worker* worker)
printq->client_cp->cb_arg = printq;
return printq;
}
+#endif /* !THREADS_DISABLED */
/** fast reload printq delete */
static void
ub_thread_create(&worker->daemon->fast_reload_thread->tid,
fast_reload_thread_main, worker->daemon->fast_reload_thread);
#else
+ (void)s;
#endif
}