pthread_yield_np - unsupported; temporarily available; use sched_yield (CrUn104)
The pthread_yield_np routine is a nonportable alias for the POSIX sched_yield function. This routine will be available on a temporary basis in the Tru64 UNIX Migration Environment for HP-UX.
The pthread_yield_np entry point is an alias for the POSIX standard sched_yield function, intended to provide a common way for a DECthreads application to yield its processor on both Tru64 UNIX, which supports sched_yield, and OpenVMS, which does not.
Applications that expect to run multiple threads on a uniprocessor system might call pthread_yield_np after releasing a mutex as a hint that this would be an effective place for the thread to be preempted. This can reduce the chances of timeslicing a thread that holds a mutex, perhaps subsequently requiring the new thread to block on that mutex.
The pthread_yield_np routine is in the Tru64 UNIX Migration Environment.
Applications will be able to use this routine from the Tru64 UNIX Migration Environment for HP-UX. Please note that the Migration Environment is temporary. Applications that use pthread_yield_np should be recoded to call the POSIX standard function sched_yield directly. Both Tru64 UNIX and HP-UX support sched_yield.
||any HP-UX 11i version