Boost logo

Boost :

Subject: [boost] [thread] 2 questions about thread interruption
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2016-04-18 17:42:13


Hi,
I have two questions connected to thread interruption in Boost.Thread.

*1.* The docs say that interrupt_and_join_if_joinable is defined as follows:

```
struct interrupt_and_join_if_joinable{

  void operator()(thread& t)
  {
    t.interrupt();
    if (t.joinable())
    {
      t.join();
    }
  }};

```


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk