]> 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)
commit31a81c8637ada101080508dc92e93b96edff1728
treef630c8912fa279cbd79cba4469fb79bb2ca35d58
parent03966a632c41241dfd40a37896c32e8f15c70b9d
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