diff options
author | Chris Fairles <cfairles@gcc.gnu.org> | 2009-02-09 06:32:12 +0000 |
---|---|---|
committer | Chris Fairles <cfairles@gcc.gnu.org> | 2009-02-09 06:32:12 +0000 |
commit | 4a50cd932f916c04bbe508acaf0344962266ebf6 (patch) | |
tree | 466eb6ccf0c1e04e01ae7be5cf1ce934b8419482 /libstdc++-v3 | |
parent | 7a4fbffcb2f9fd0720f5f9d2865d765c8e70db8c (diff) | |
download | gcc-4a50cd932f916c04bbe508acaf0344962266ebf6.zip gcc-4a50cd932f916c04bbe508acaf0344962266ebf6.tar.gz gcc-4a50cd932f916c04bbe508acaf0344962266ebf6.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/std/thread | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d80ab82..a45742a 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 3704192..e0e093c 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 |