On Wed, 22 May 2002, Aaron Bannert wrote: > CPU since it hits none of the yieldable system calls. On systems that do > true context switching between userspace threads, this doesn't need to > be implemented. It in no way guarantees that the execution will be > yielded, since that's up to the scheduling mechanism.
If it isn't guaranteed to do something but is rather just a "hint", that's fine, as long as it's documented. But we should still make an attempt to honor the hint if the underlying system will let us. [For example, I know my research work frequently requires these hints because ~10ms is farrrrr too long a timeslice in my field, and I love using APR for my research projects... I personally just assumed apr_thread_yield() did what I wanted until I looked into it and found that it did nothing.] --Cliff -------------------------------------------------------------- Cliff Woolley [EMAIL PROTECTED] Charlottesville, VA
