]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add placeholders for some of the newer threading functions.
authorMichael R Sweet <michaelrsweet@gmail.com>
Mon, 8 Aug 2016 16:51:37 +0000 (12:51 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Mon, 8 Aug 2016 16:51:37 +0000 (12:51 -0400)
cups/thread.c

index bd947b4ecdb0103e254f9f70a1700f209caa1e63..312933b37489081877a090249c813a4ac7f172ed 100644 (file)
@@ -193,6 +193,41 @@ _cupsThreadWait(_cups_thread_t thread)     /* I - Thread ID */
 #  include <process.h>
 
 
+/*
+ * '_cupsCondBroadcast()' - Wake up waiting threads.
+ */
+
+void
+_cupsCondBroadcast(_cups_cond_t *cond) /* I - Condition */
+{
+  // TODO: Implement me
+}
+
+
+/*
+ * '_cupsCondInit()' - Initialize a condition variable.
+ */
+
+void
+_cupsCondInit(_cups_cond_t *cond)      /* I - Condition */
+{
+  // TODO: Implement me
+}
+
+
+/*
+ * '_cupsCondWait()' - Wait for a condition with optional timeout.
+ */
+
+void
+_cupsCondWait(_cups_cond_t  *cond,     /* I - Condition */
+              _cups_mutex_t *mutex,    /* I - Mutex */
+             double        timeout)    /* I - Timeout in seconds (0 or negative for none) */
+{
+  // TODO: Implement me
+}
+
+
 /*
  * '_cupsMutexInit()' - Initialize a mutex.
  */
@@ -319,7 +354,42 @@ _cupsThreadWait(_cups_thread_t thread)     /* I - Thread ID */
 }
 
 
-#else
+#else /* No threading */
+/*
+ * '_cupsCondBroadcast()' - Wake up waiting threads.
+ */
+
+void
+_cupsCondBroadcast(_cups_cond_t *cond) /* I - Condition */
+{
+  // TODO: Implement me
+}
+
+
+/*
+ * '_cupsCondInit()' - Initialize a condition variable.
+ */
+
+void
+_cupsCondInit(_cups_cond_t *cond)      /* I - Condition */
+{
+  // TODO: Implement me
+}
+
+
+/*
+ * '_cupsCondWait()' - Wait for a condition with optional timeout.
+ */
+
+void
+_cupsCondWait(_cups_cond_t  *cond,     /* I - Condition */
+              _cups_mutex_t *mutex,    /* I - Mutex */
+             double        timeout)    /* I - Timeout in seconds (0 or negative for none) */
+{
+  // TODO: Implement me
+}
+
+
 /*
  * '_cupsMutexInit()' - Initialize a mutex.
  */