aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/thread
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2009-01-18 12:38:10 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2009-01-18 12:38:10 +0000
commit8b6ded8d4ff7292cc0c4d9c24a6670d97755aaeb (patch)
treed3e3ad76e04a0068362fb9a131ae775c32b03bcb /libstdc++-v3/include/std/thread
parent9d2cc6f08117772029621e01bd10e1bc47b9d7b6 (diff)
downloadgcc-8b6ded8d4ff7292cc0c4d9c24a6670d97755aaeb.zip
gcc-8b6ded8d4ff7292cc0c4d9c24a6670d97755aaeb.tar.gz
gcc-8b6ded8d4ff7292cc0c4d9c24a6670d97755aaeb.tar.bz2
thread (__thread_data_base::__run): Make non-const.
* include/std/thread (__thread_data_base::__run): Make non-const. * testsuite/30_threads/thread/cons/5.cc: New. From-SVN: r143483
Diffstat (limited to 'libstdc++-v3/include/std/thread')
-rw-r--r--libstdc++-v3/include/std/thread4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread
index 422e362..00fb018 100644
--- a/libstdc++-v3/include/std/thread
+++ b/libstdc++-v3/include/std/thread
@@ -65,7 +65,7 @@ namespace std
__thread_data_base() = default;
virtual ~__thread_data_base() = default;
- virtual void __run() const = 0;
+ virtual void __run() = 0;
__gthread_t _M_thread_handle;
__thread_data_ptr _M_this_ptr;
@@ -80,7 +80,7 @@ namespace std
: _M_func(std::forward<_Callable>(__f))
{ }
- void __run() const
+ void __run()
{ _M_func(); }
private: