/*
- * "$Id$"
+ * "$Id: thread.c 11984 2014-07-02 13:16:59Z msweet $"
*
- * Threading primitives for CUPS.
+ * Threading primitives for CUPS.
*
- * Copyright 2009-2010 by Apple Inc.
+ * Copyright 2009-2014 by Apple Inc.
*
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law. Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file. If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
*
- * Contents:
- *
- * _cupsMutexInit() - Initialize a mutex.
- * _cupsMutexLock() - Lock a mutex.
- * _cupsMutexUnlock() - Unlock a mutex.
- * _cupsRWInit() - Initialize a reader/writer lock.
- * _cupsRWLockRead() - Acquire a reader/writer lock for reading.
- * _cupsRWLockWrite() - Acquire a reader/writer lock for writing.
- * _cupsRWUnlock() - Release a reader/writer lock.
- * _cupsThreadCreate() - Create a thread.
+ * This file is subject to the Apple OS-Developed Software exception.
*/
/*
* '_cupsThreadCreate()' - Create a thread.
*/
-int /* O - 0 on failure, 1 on success */
+int /* O - 0 on failure, 1 on success */
_cupsThreadCreate(
_cups_thread_func_t func, /* I - Entry point */
void *arg) /* I - Entry point context */
* '_cupsThreadCreate()' - Create a thread.
*/
-int /* O - 0 on failure, 1 on success */
+int /* O - 0 on failure, 1 on success */
_cupsThreadCreate(
_cups_thread_func_t func, /* I - Entry point */
void *arg) /* I - Entry point context */
{
(void)rwlock;
}
+
+
+/*
+ * '_cupsThreadCreate()' - Create a thread.
+ */
+
+int /* O - 0 on failure, 1 on success */
+_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);
+
+ (void)func;
+ (void)arg;
+
+ return (0);
+}
#endif /* HAVE_PTHREAD_H */
/*
- * End of "$Id$".
+ * End of "$Id: thread.c 11984 2014-07-02 13:16:59Z msweet $".
*/