]> git.ipfire.org Git - thirdparty/apache/httpd.git/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)
commitf9c428186e84b04571737b1fd1d2a4d5d9e8d65a
tree12f3704fd805139a37e07a9b98e5ed4c8f0909cf
parentd9bf770db1765ab935b92165e176175ef4afd7d1
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