* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL && LINT2]
(GC_stop_world): Redefine WAIT_UNIT to 1; call sched_yield() instead
of usleep(); add comment.
wait_usecs = 0;
}
-# if defined(CPPCHECK) /* || _POSIX_C_SOURCE >= 199309L */
+# ifdef LINT2
+ /* Workaround "waiting while holding a lock" warning. */
+# undef WAIT_UNIT
+# define WAIT_UNIT 1
+ sched_yield();
+# elif defined(CPPCHECK) /* || _POSIX_C_SOURCE >= 199309L */
{
struct timespec ts;