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
This commit is contained in:
Chris Fairles 2009-02-09 06:32:12 +00:00
parent 7a4fbffcb2
commit 4a50cd932f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View 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