OSDN Git Service

2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jun 2009 20:34:43 +0000 (20:34 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jun 2009 20:34:43 +0000 (20:34 +0000)
* include/std/thread (~thread(), operator=(thread&&)): Call terminate
if joinable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148552 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread

index 2ca72ea..7d17880 100644 (file)
@@ -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
index fbdfe2e..bf282cc 100644 (file)
@@ -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;
     }