[patch] fix thread test cases for solaris.
Chris Fairles
chris.fairles@gmail.com
Mon Jan 12 23:52:00 GMT 2009
On Mon, Jan 12, 2009 at 5:56 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> .. I'm still seeing quite a few out-of-line trivial functions in
> thread.cc. Do you really, really need that?
>
> Paolo.
>
this_thread::yield can be inlined, thread::swap can be inlined.
Working on defining thread::id inline but running into issues with
"thread::id this_thread::get_id()" function which requires the private
ctor of thread::id. Thus, it is declared a friend in thread::id, but
the friend decl needs a decl of the function... which nees a
declaration of thread::id ... which, for inner classes can't be at
namespace scope. Boo-urns. Will have to get around it with helper
functions or something but i'm sure it can be done.
Chris
More information about the Libstdc++
mailing list