Split thread and range stuff out of utils

This commit is contained in:
Vinnie Falco
2013-05-27 10:05:49 -07:00
parent 9b5d047c90
commit 90bc0c1a8c
16 changed files with 271 additions and 128 deletions

View File

@@ -128,7 +128,7 @@ void printHelp(const po::options_description& desc)
int main(int argc, char* argv[])
{
NameThread("main");
setCallingThreadName("main");
int iResult = 0;
po::variables_map vm; // Map of options.
@@ -269,14 +269,14 @@ int main(int argc, char* argv[])
{
// No arguments. Run server.
setupServer();
NameThread("io");
setCallingThreadName("io");
startServer();
InstanceType::shutdown();
}
else
{
// Have a RPC command.
NameThread("rpc");
setCallingThreadName("rpc");
std::vector<std::string> vCmd = vm["parameters"].as<std::vector<std::string> >();
iResult = commandLineRPC(vCmd);