Comment 1 for bug 287090

Revision history for this message
Paul McCullagh (paul-mccullagh) wrote :

Hi JYM,

Thanks for the bug report! Please check if the following code solves the problem:

xtPublic void xt_yield(void)
{
#ifdef XT_WIN
 Sleep(0);
#elif defined(XT_MAC)
 usleep(0);
#else
#if defined(__NetBSD__)
 sched_yield();
#else
 pthread_yield();
#endif
#endif
}