static string* nopFunction()
{
- return new string("pong " + RecThreadInfo::self().getname() + '\n');
+ return new string("pong " + RecThreadInfo::self().getName() + '\n');
}
static string getDontThrottleNames()
t_id = id;
}
- std::string getname() const
+ std::string getName() const
{
return name;
}
private:
void start(unsigned int id, const string& name, const std::map<unsigned int, std::set<int>>& cpusMap);
+ std::string name;
std::thread thread;
int exitCode{0};
bool taskThread{false};
static thread_local unsigned int t_id;
- std::string name;
static std::vector<RecThreadInfo> s_threadInfos;
static bool s_weDistributeQueries; // if true, 1 or more threads listen on the incoming query sockets and distribute them to workers
static unsigned int s_numDistributorThreads;