OSDN Git Service

2009-02-08 Chris Fairles <cfairles@gcc.gnu.org>
authorcfairles <cfairles@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Feb 2009 06:32:12 +0000 (06:32 +0000)
committercfairles <cfairles@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Feb 2009 06:32:12 +0000 (06:32 +0000)
        * 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

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

index d80ab82..a45742a 100644 (file)
@@ -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.
index 3704192..e0e093c 100644 (file)
@@ -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