Commit 4a50cd93 by Chris Fairles

thread (this_thread::get_id): Inline.

2009-02-08  Chris Fairles  <cfairles@gcc.gnu.org>

        * include/std/thread (this_thread::get_id): Inline.

From-SVN: r144029
parent 7a4fbffc
2009-02-08 Chris Fairles <cfairles@gcc.gnu.org> 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 * include/std/thread (thread<>::thread(_Callable)): Explicitly use
_Callable as template argument for _M_make_shared_data. _Callable as template argument for _M_make_shared_data.
* testsuite/30_threads/thread/cons/6.cc: New. * testsuite/30_threads/thread/cons/6.cc: New.
......
...@@ -239,7 +239,7 @@ namespace std ...@@ -239,7 +239,7 @@ namespace std
// 30.2.2 Namespace this_thread. // 30.2.2 Namespace this_thread.
namespace this_thread namespace this_thread
{ {
thread::id inline thread::id
get_id() { return thread::id(__gthread_self()); } get_id() { return thread::id(__gthread_self()); }
#ifdef _GLIBCXX_USE_SCHED_YIELD #ifdef _GLIBCXX_USE_SCHED_YIELD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment