title: Writing a C++11 thread based module for apache
body: <p>I'd like to write a module for Apache in C++11 (GCC 4.7) and configure it such that:</p>
  
  <ul>
  <li>A custom initialization function in my code is called once at server startup.</li>
  <li>Request Handling Workers are spawned by apache as pthreads all in the same process. (Not forking processes)</li>
  <li>HTTP Requests are handled by a function call from the worker threads that call a blocking function I've written in my code.</li>
  </ul>
  
  <p>Is all of this possible?  Or is Apache not designed this way?  If it is possible what is a sketch of how to configure it and to build and attach the module?</p>