summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorcfairles <cfairles@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-09 06:32:12 +0000
committercfairles <cfairles@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-09 06:32:12 +0000
commit8aebec334052cfe3b570a09bd1d7b269e99f6bb9 (patch)
tree466eb6ccf0c1e04e01ae7be5cf1ce934b8419482 /libstdc++-v3
parent2a8afb23dda87f635d678802859a4df3038060e0 (diff)
downloadgcc-8aebec334052cfe3b570a09bd1d7b269e99f6bb9.tar.gz
2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
* include/std/thread (this_thread::get_id): Inline. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144029 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/std/thread2
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index d80ab82a17a..a45742a9971 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,9 @@
2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
+ * include/std/thread (this_thread::get_id): Inline.
+
+2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
+
* include/std/thread (thread<>::thread(_Callable)): Explicitly use
_Callable as template argument for _M_make_shared_data.
* testsuite/30_threads/thread/cons/6.cc: New.
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread
index 3704192913f..e0e093ce89c 100644
--- a/libstdc++-v3/include/std/thread
+++ b/libstdc++-v3/include/std/thread
@@ -239,7 +239,7 @@ namespace std
// 30.2.2 Namespace this_thread.
namespace this_thread
{
- thread::id
+ inline thread::id
get_id() { return thread::id(__gthread_self()); }
#ifdef _GLIBCXX_USE_SCHED_YIELD