summaryrefslogtreecommitdiff
path: root/cups/thread.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2017-11-01 11:56:33 -0400
committerMichael R Sweet <michaelrsweet@gmail.com>2017-11-01 11:56:33 -0400
commit4d8e89a654257c6822696fc9bb12159d33721f2d (patch)
tree57fc7b82d3c14db720ee1cd8cc06d13734d719c9 /cups/thread.c
parent11143dcf5bab261c62e44c109c915b5561902784 (diff)
downloadcups-4d8e89a654257c6822696fc9bb12159d33721f2d.tar.gz
Fix the ippserver sample code when threading is disabled or unavailable (Issue #5154)
Diffstat (limited to 'cups/thread.c')
-rw-r--r--cups/thread.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/cups/thread.c b/cups/thread.c
index 65257aa11..983abec2d 100644
--- a/cups/thread.c
+++ b/cups/thread.c
@@ -513,8 +513,7 @@ _cupsThreadCreate(
_cups_thread_func_t func, /* I - Entry point */
void *arg) /* I - Entry point context */
{
- fputs("DEBUG: CUPS was compiled without threading support, no thread "
- "created.\n", stderr);
+ fputs("DEBUG: CUPS was compiled without threading support, no thread created.\n", stderr);
(void)func;
(void)arg;
@@ -524,6 +523,17 @@ _cupsThreadCreate(
/*
+ * '_cupsThreadDetach()' - Tell the OS that the thread is running independently.
+ */
+
+void
+_cupsThreadDetach(_cups_thread_t thread)/* I - Thread ID */
+{
+ (void)thread;
+}
+
+
+/*
* '_cupsThreadWait()' - Wait for a thread to exit.
*/