Remove unused io_service

This commit is contained in:
Vinnie Falco
2013-07-29 01:54:45 -07:00
parent e9a7f6f81a
commit 7fdedfd0b0
2 changed files with 2 additions and 5 deletions

View File

@@ -6,11 +6,10 @@
SETUP_LOG (JobQueue) SETUP_LOG (JobQueue)
JobQueue::JobQueue (boost::asio::io_service& svc) JobQueue::JobQueue ()
: mLastJob (0) : mLastJob (0)
, mThreadCount (0) , mThreadCount (0)
, mShuttingDown (false) , mShuttingDown (false)
, mIOService (svc)
{ {
mJobLoads [ jtPUBOLDLEDGER ].setTargetLatency (10000, 15000); mJobLoads [ jtPUBOLDLEDGER ].setTargetLatency (10000, 15000);
mJobLoads [ jtVALIDATION_ut ].setTargetLatency (2000, 5000); mJobLoads [ jtVALIDATION_ut ].setTargetLatency (2000, 5000);

View File

@@ -10,7 +10,7 @@
class JobQueue class JobQueue
{ {
public: public:
explicit JobQueue (boost::asio::io_service&); JobQueue ();
// VFALCO TODO make convenience functions that allow the caller to not // VFALCO TODO make convenience functions that allow the caller to not
// have to call bind. // have to call bind.
@@ -57,8 +57,6 @@ private:
int mThreadCount; int mThreadCount;
bool mShuttingDown; bool mShuttingDown;
boost::asio::io_service& mIOService;
std::map<JobType, std::pair<int, int > > mJobCounts; std::map<JobType, std::pair<int, int > > mJobCounts;
bool getJob (Job& job); bool getJob (Job& job);