apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Nicholes" <BNICHO...@novell.com>
Subject [PROPOSAL] Addition of apr_thread_yield() API...
Date Mon, 30 Jul 2001 18:54:18 GMT
    I would like to propose adding the function apr_thread_yield() as part of the threading
API's.  The reason for this to to allow applications to force a thread to yield the processor
during a compute bound operation.  On the NetWare platform, not yielding the processor in
a timely fashion can cause the entire server to become sluggish.  The implementation of this
routine for NetWare would be as simple as:

void apr_thread_yield()
{
    NXThreadYield();
}

thanks,
Brad



Mime
View raw message