]> granicus.if.org Git - apache/commit
Some more threadpool MPM changes:
authorAaron Bannert <aaron@apache.org>
Sun, 28 Apr 2002 23:05:15 +0000 (23:05 +0000)
committerAaron Bannert <aaron@apache.org>
Sun, 28 Apr 2002 23:05:15 +0000 (23:05 +0000)
commit5e647365f85f5431112ad066466d8526a8c349d0
tree12f3704fd805139a37e07a9b98e5ed4c8f0909cf
parent464b62610a6d571c7477a7c2e1b458290c57316c
Some more threadpool MPM changes:

- Add a "state" variable to the worker_wakeup_info struct. This is
  used to make sure that we act on the correct signal, and to know when
  to shut down a worker thread.
- Fix the call when the worker thread waits for a connection to use
  the new state variable and use mutexes around the cond_wait() call.
- Change the interrupt_all() call to set the WORKER_TERMINATED state.
- Add two AP_DEBUG_ASSERT() to make sure that we aren't waking up
  a worker thread before it is idle.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94843 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/experimental/threadpool/threadpool.c