Cooperative Interruption of a std::jthread
Understand the details of cooperative interruption of a std::jthread.
We'll cover the following...
We'll cover the following...
To get a general idea, let me present a simple example.
In the main program I start the two threads nonInterruptible and interruptible (lines 10 and 19). Unlike in the thread nonInterruptible, the thread interruptible ...