thread (~thread(), [...]): Call terminate if joinable.
2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com> * include/std/thread (~thread(), operator=(thread&&)): Call terminate if joinable. From-SVN: r148552
This commit is contained in:
parent
504b33d80c
commit
cd3b0fafaa
|
@ -1,3 +1,8 @@
|
|||
2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* include/std/thread (~thread(), operator=(thread&&)): Call terminate
|
||||
if joinable.
|
||||
|
||||
2009-06-15 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/libstdcxx/v6/printers.py (StdMapPrinter.__init__): Don't
|
||||
|
|
|
@ -135,7 +135,7 @@ namespace std
|
|||
~thread()
|
||||
{
|
||||
if (joinable())
|
||||
detach();
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
thread& operator=(const thread&) = delete;
|
||||
|
@ -143,7 +143,7 @@ namespace std
|
|||
thread& operator=(thread&& __t)
|
||||
{
|
||||
if (joinable())
|
||||
detach();
|
||||
std::terminate();
|
||||
swap(__t);
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue