httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: [PATCH] Don't accept more connections than workers
Date Fri, 26 Apr 2002 18:12:57 GMT
On Fri, 26 Apr 2002, Bill Stoddard wrote:

> +         * later
> +         */
> +        if (!worker_thread_cnt) {
> +            yield();
> +            continue;
> +        }
> +

It compiles, but it doesn't link.  No such thing as yield():

server/mpm/worker/.libs/libworker.al(worker.lo): In function
`listener_thread':
worker.lo(.text+0x8dd): undefined reference to `yield'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1


I would say it ought to be apr_thread_yield(), but I see the unix
implementation of that in APR is this:

void apr_thread_yield()
{
}

Now THAT'S nice.  :(

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA




Mime
View raw message