amqpprox
amqpprox copied to clipboard
DNSHostnameMapper upgrade to C++17
Now we're using C++17 for this project, the boost::shared_mutex
can be converted over to a std::shared_mutex
.
We're using boost::upgrade_to_unique_lock
, which as far as I can tell didn't make it into C++17. Avoiding the boost::shared_mutex would require acquiring a unique_lock at the start of the DNSHostnameMapper::prime
method.
This may actually make sense, I'm getting the feeling that two parallel calls to prime may end up deadlocked. Unsure if upgrade_to_unique_lock
does something special here.