tsan linux tentative fix / copy string instead of passing a const reference
This commit is contained in:
parent
372dd24cc7
commit
d3e04ff619
@ -146,7 +146,7 @@ namespace ix
|
||||
return _res;
|
||||
}
|
||||
|
||||
void DNSLookup::run(uint64_t id, const std::string& hostname, int port) // thread runner
|
||||
void DNSLookup::run(uint64_t id, std::string hostname, int port) // thread runner
|
||||
{
|
||||
// We don't want to read or write into members variables of an object that could be
|
||||
// gone, so we use temporary variables (res) or we pass in by copy everything that
|
||||
|
@ -43,7 +43,7 @@ namespace ix
|
||||
int port,
|
||||
std::string& errMsg);
|
||||
|
||||
void run(uint64_t id, const std::string& hostname, int port); // thread runner
|
||||
void run(uint64_t id, std::string hostname, int port); // thread runner
|
||||
|
||||
std::string _hostname;
|
||||
int _port;
|
||||
|
Loading…
Reference in New Issue
Block a user