Destruction order vs thread safety in C++
Welcome to the next pikoTutorial!
What's the problem?
Let's take a look at the simple example below:
#include <iostream>
#include <future>
#include <thread>
#include <memory>
// define a class spinning up a thread
class SomeClass
{
public:
SomeCl...
pikotutorial.hashnode.dev5 min read