refactor LibEvent(Worker|Job) to share code with Proxygen
commitd618d28696e2f6fe95109fc21bea1b97cb51b686
authorAlan Frindell <afrind@fb.com>
Tue, 30 Jul 2013 05:03:28 +0000 (29 22:03 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 13 Sep 2013 19:35:47 +0000 (13 12:35 -0700)
tree6b1c666ff78521cc60fad682e867d21af46ee4ca
parenteae7a664c57a047c8246990673dcbcdf1dbd48f3
refactor LibEvent(Worker|Job) to share code with Proxygen

The proxygen server will use the same basic Worker/Job structure so I created server_worker with the shared logic.  Had to make the templates somewhat complex to avoid the perf hit of virtual functions here.

Reviewed By: @markw65

Differential Revision: D922622
hphp/runtime/server/libevent-server.cpp
hphp/runtime/server/libevent-server.h
hphp/runtime/server/server-worker.cpp [new file with mode: 0644]
hphp/runtime/server/server-worker.h [new file with mode: 0644]