Boost asio worker factory
Created by: robertmaynard
Create a derived WorkerFactory, that uses the boost thread and asio to create a pool of threads and assign them to workers.
We will need to have an api that allows users to easily register workers for the pool to use. The key is that the pool will want to have a single server connection it passes to the users bound function.
So we need something like:
template<typename WorkerLauncer>
bool registerWorkerType( const remus::proto::JobRequirements& requirements,
WorkerLauncer wl);
where WorkerLauncher
is a bound function with the following signature
bool launchWorker( const remus::proto::JobRequirements& requirements,
const remus::worker:: ServerConnection& conn);