At 01:47 PM 4/10/2004, Eugene LiS User wrote:

Dave Grothe <[EMAIL PROTECTED]> wrote:

> I rewrote and simplified this routine. 
> It will now always wake up the queue runner thread.

Before waking up any new thread, shouldn't there be a check
that enough threads are running already?

That's what this code does.



Waking thread up per every qenable can be expensive overhead.

Qenable is precisely the time at which a queue runner thread needs to be awakened it no thread is running.  Or more threads need to be awakened if the number of unprocessed queues is getting too large.  Again, that is what this code does (or at least is supposed to do).

-- Dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 4/9/2004

Reply via email to