$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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();
}
}};
```