Make debug easier by naming threads.

This commit is contained in:
JoelKatz
2013-03-20 05:41:08 -07:00
parent f3400d88fc
commit 9ceb380cb8
6 changed files with 50 additions and 2 deletions

View File

@@ -127,6 +127,7 @@ void printHelp(const po::options_description& desc)
int main(int argc, char* argv[])
{
NameThread("main");
int iResult = 0;
po::variables_map vm; // Map of options.
@@ -248,6 +249,7 @@ int main(int argc, char* argv[])
{
// No arguments. Run server.
setupServer();
NameThread("io");
startServer();
}
else