Use JobQueue for RPCSub instead of boost::thread

This commit is contained in:
Vinnie Falco
2013-07-29 14:33:07 -07:00
parent 103dc6facf
commit 2ed8f7938c
2 changed files with 5 additions and 3 deletions

View File

@@ -40,6 +40,8 @@ David Feature:
--------------------------------------------------------------------------------
- Add convenience variadic functions to JobQueue that do the bind for you
- Consolidate databases
- Figure out why we need WAL sqlite mode if we no longer use sqlite for the node store

View File

@@ -112,8 +112,8 @@ void RPCSub::send (const Json::Value& jvObj, bool broadcast)
mSending = true;
WriteLog (lsINFO, RPCSub) << boost::str (boost::format ("callRPC start"));
boost::thread (BIND_TYPE (&RPCSub::sendThread, this)).detach ();
}
}
// vim:ts=4
getApp().getJobQueue ().addJob (
jtCLIENT, "RPCSub::sendThread", BIND_TYPE (&RPCSub::sendThread, this));
}
}