]> granicus.if.org Git - apache/commit
Some threadpool fixes:
authorAaron Bannert <aaron@apache.org>
Sun, 28 Apr 2002 22:25:16 +0000 (22:25 +0000)
committerAaron Bannert <aaron@apache.org>
Sun, 28 Apr 2002 22:25:16 +0000 (22:25 +0000)
commitf00ec6fdf1ec1ab40dc75b17cab0640290527220
treef630c8912fa279cbd79cba4469fb79bb2ca35d58
parent170e12e0316a1f19c91071ff71a5e64958870d1a
Some threadpool fixes:

- We don't need the listener_blocked flag, just check if the element
  we're adding makes the stack non-empty.
- When we are terminated, return APR_EOF; catch this event in the
  worker thread and the listener thread.
- When shutting down, always signal a potential listener thread.
- Wait to signal the listener thread until after we add the worker
  element to the stack.

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