summaryrefslogtreecommitdiffstats
path: root/wtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wtp.c')
-rw-r--r--wtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wtp.c b/wtp.c
index 83cb5d5e..1c2ea30f 100644
--- a/wtp.c
+++ b/wtp.c
@@ -476,7 +476,9 @@ wtpStartWrkr(wtp_t *pThis, int bLockMutex)
/* we try to give the starting worker a little boost. It won't help much as we still
* hold the queue's mutex, but at least it has a chance to start on a single-CPU system.
*/
+# if !defined(__hpux) /* pthread_yield is missing there! */
pthread_yield();
+# endif
/* indicate we just started a worker and would like to see it running */
wtpSetInactivityGuard(pThis, 1, MUTEX_ALREADY_LOCKED);