From: Michael R Sweet Date: Mon, 8 Aug 2016 16:51:37 +0000 (-0400) Subject: Add placeholders for some of the newer threading functions. X-Git-Tag: v2.2rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa747d186fc0fe119030156484c60e5912a3acbe;p=thirdparty%2Fcups.git Add placeholders for some of the newer threading functions. --- diff --git a/cups/thread.c b/cups/thread.c index bd947b4ecd..312933b374 100644 --- a/cups/thread.c +++ b/cups/thread.c @@ -193,6 +193,41 @@ _cupsThreadWait(_cups_thread_t thread) /* I - Thread ID */ # include +/* + * '_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. */