> -----Original Message-----
> From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
> Sent: 21. lipanj 2002 13:44
> To: Tomcat Developers List
> Subject: RE: [PATCH] mod_jk 1.2.0 workers pool
>
>
> sleep(#seconds)
>
> or
>
> usleep(#microseconds)
>
The it should be usleep (10000);
> No the real problem is with using a sleep in
> network code, I didn't like it.
>
Well I have a loop that waits that one of the ajp workers sets its
is_busy flag to 0. Without the sleep you have a thread lock. If the code
would run only on WIN32, then I would use the WaitForMultipleObjects,
but since I don't know the unix pthreads that thorowly, the sleep is the
simplest solution I've think of (signals perhaps).
MT.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>