public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC: C0x11 threading support
@ 2011-11-25 10:24 Erotavlas_turbo
  2011-11-25 12:26 ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: Erotavlas_turbo @ 2011-11-25 10:24 UTC (permalink / raw)
  To: gcc-help

Hi,

I have read that the threading programming proposed in new C++ standard 
(C0x11) is supported by GCC but only a small subset of features are available. 
So for the moment is better to use the boost thread library (that should be the 
same adopted by new standard, correct me if I'm wrong) or the complete support 
by GCC is not so far?

Thank you

Best Regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-25 10:24 GCC: C0x11 threading support Erotavlas_turbo
@ 2011-11-25 12:26 ` Jonathan Wakely
  2011-11-25 13:11   ` Jonathan Wakely
  2011-11-25 15:19   ` Marc Glisse
  0 siblings, 2 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-11-25 12:26 UTC (permalink / raw)
  To: Erotavlas_turbo; +Cc: gcc-help

On 25 November 2011 08:59, Erotavlas_turbo@libero.it wrote:
> Hi,
>
> I have read that the threading programming proposed in new C++ standard
> (C0x11)

(It was informally called C++0x but is now published and often
referred to as C++11, but calling it C++0x11 makes no sense.)

> is supported by GCC but only a small subset of features are available.
> So for the moment is better to use the boost thread library (that should be the
> same adopted by new standard, correct me if I'm wrong) or the complete support
> by GCC is not so far?

Since you suggest Boost as an alternative I assume you are only
talking about the new library classes (since that's all Boost
provides).  The library features are almost complete:
http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.200x

There is more work to be done for the core language features:
http://gcc.gnu.org/projects/cxx0x.html
http://gcc.gnu.org/wiki/Atomic/
http://gcc.gnu.org/wiki/Atomic/GCCMM

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-25 12:26 ` Jonathan Wakely
@ 2011-11-25 13:11   ` Jonathan Wakely
  2011-11-25 15:19   ` Marc Glisse
  1 sibling, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-11-25 13:11 UTC (permalink / raw)
  To: Erotavlas_turbo; +Cc: gcc-help

On 25 November 2011 10:01, Jonathan Wakely wrote:
> On 25 November 2011 08:59, Erotavlas_turbo@libero.it wrote:
>> Hi,
>>
>> I have read that the threading programming proposed in new C++ standard
>> (C0x11)
>
> (It was informally called C++0x but is now published and often
> referred to as C++11, but calling it C++0x11 makes no sense.)

Sorry, I meant calling it C0x11 makes no sense (although C++0x11 doesn't either)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-25 12:26 ` Jonathan Wakely
  2011-11-25 13:11   ` Jonathan Wakely
@ 2011-11-25 15:19   ` Marc Glisse
  2011-11-25 21:16     ` Jonathan Wakely
  1 sibling, 1 reply; 12+ messages in thread
From: Marc Glisse @ 2011-11-25 15:19 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: Erotavlas_turbo, gcc-help

On Fri, 25 Nov 2011, Jonathan Wakely wrote:

> On 25 November 2011 08:59, Erotavlas_turbo@libero.it wrote:
>> Hi,
>>
>> I have read that the threading programming proposed in new C++ standard
>> (C0x11)
>
> (It was informally called C++0x but is now published and often
> referred to as C++11, but calling it C++0x11 makes no sense.)
>
>> is supported by GCC but only a small subset of features are available.
>> So for the moment is better to use the boost thread library (that should be the
>> same adopted by new standard, correct me if I'm wrong) or the complete support
>> by GCC is not so far?
>
> Since you suggest Boost as an alternative I assume you are only
> talking about the new library classes (since that's all Boost
> provides).  The library features are almost complete:
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.200x
>
> There is more work to be done for the core language features:
> http://gcc.gnu.org/projects/cxx0x.html
> http://gcc.gnu.org/wiki/Atomic/
> http://gcc.gnu.org/wiki/Atomic/GCCMM

Those don't seem to mention that the branch was recently merged into 
trunk. That doesn't make the support complete though.

-- 
Marc Glisse

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-25 15:19   ` Marc Glisse
@ 2011-11-25 21:16     ` Jonathan Wakely
  2011-11-26 14:31       ` Andrew MacLeod
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Wakely @ 2011-11-25 21:16 UTC (permalink / raw)
  To: Aldy Hernandez, Andrew MacLeod; +Cc: gcc-help

On 25 November 2011 10:24, Marc Glisse wrote:
> On Fri, 25 Nov 2011, Jonathan Wakely wrote:
>>
>> There is more work to be done for the core language features:
>> http://gcc.gnu.org/projects/cxx0x.html
>> http://gcc.gnu.org/wiki/Atomic/
>> http://gcc.gnu.org/wiki/Atomic/GCCMM
>
> Those don't seem to mention that the branch was recently merged into trunk.
> That doesn't make the support complete though.

I've just updated the "Status" section at http://gcc.gnu.org/wiki/Atomic/GCCMM

Aldy, Andrew, I hope that's OK.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-25 21:16     ` Jonathan Wakely
@ 2011-11-26 14:31       ` Andrew MacLeod
  0 siblings, 0 replies; 12+ messages in thread
From: Andrew MacLeod @ 2011-11-26 14:31 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: Aldy Hernandez, gcc-help

On 11/25/2011 06:29 AM, Jonathan Wakely wrote:
> I've just updated the "Status" section at http://gcc.gnu.org/wiki/Atomic/GCCMM
>
> Aldy, Andrew, I hope that's OK.
Sure. I'm a little behind in my administrivia...  :-)

Andrew

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-29 20:21 Erotavlas_turbo
@ 2011-11-29 22:48 ` Jonathan Wakely
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-11-29 22:48 UTC (permalink / raw)
  To: Erotavlas_turbo; +Cc: gcc-help

On 29 November 2011 15:30, Erotavlas_turbo@libero.it wrote:
> So what are the differencies between the boost thread library and the future
> C++11 thread library? I have read that they should be the same...

boost::thread supports thread interruption, a feature not present in C++11.
http://www.boost.org/doc/libs/1_48_0/doc/html/thread/thread_management.html#thread.thread_management.interruption

A joinable boost::thread will detach automatically if it goes out of
scope, a std::thread will call std::terminate.
http://www.boost.org/doc/libs/1_48_0/doc/html/thread/thread_management.html#thread.thread_management.joining_and_detaching

Boost provides a thread_group class.

For more details you should probably ask on the Boost list, it's not
really relevant to GCC.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
@ 2011-11-29 20:21 Erotavlas_turbo
  2011-11-29 22:48 ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: Erotavlas_turbo @ 2011-11-29 20:21 UTC (permalink / raw)
  To: gcc-help

So what are the differencies between the boost thread library and the future 
C++11 thread library? I have read that they should be the same...

Thank you

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-29 13:30 Erotavlas_turbo
@ 2011-11-29 15:36 ` Jonathan Wakely
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-11-29 15:36 UTC (permalink / raw)
  To: Erotavlas_turbo; +Cc: gcc-help

On 29 November 2011 09:31, Erotavlas_turbo@libero.it wrote:
> Ok, I have understood that the new library of C++11 is nearly complete and it
> is almost the same of boost library.

I don't think that's what I said.

> As you have noticed the support of GCC for
> the core feature is not still complete, but can I use the library (embedded or
> boost) for threading programming?

Yes.

> Or I'm limited by the compiler?If yes what are
> the use of the library?

Creating and using mutexes, locks, threads, futures, promises etc.

What you do with them is up to you.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
@ 2011-11-29 13:30 Erotavlas_turbo
  2011-11-29 15:36 ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: Erotavlas_turbo @ 2011-11-29 13:30 UTC (permalink / raw)
  To: gcc-help

Ok, I have understood that the new library of C++11 is nearly complete and it 
is almost the same of boost library. As you have noticed the support of GCC for 
the core feature is not still complete, but can I use the library (embedded or 
boost) for threading programming?Or I'm limited by the compiler?If yes what are 
the use of the library?

Thank you

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
  2011-11-29 11:13 Erotavlas_turbo
@ 2011-11-29 11:19 ` Jonathan Wakely
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Wakely @ 2011-11-29 11:19 UTC (permalink / raw)
  To: Erotavlas_turbo; +Cc: gcc-help

On 28 November 2011 14:43, Erotavlas_turbo@libero.it wrote:
>  for your fast reply.
> I have understood that the support for C++11 (I hope it's right :)) is still
> not complete.

I'm still not sure if you're talking about the compiler support or
library support.

Library support (std::mutex, std::thread, std::future etc.) is very
nearly complete.

Compiler support needs more work, but is quite usable.  Using Boost
might not help there anyway, because Boost can't make the compiler
support something that it doesn't support.

> But my fundamental question is how long does it take the
> development process?

Until it's ready  ;-)

> Is there a roadmap?

No, I don't think so.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: GCC: C0x11 threading support
@ 2011-11-29 11:13 Erotavlas_turbo
  2011-11-29 11:19 ` Jonathan Wakely
  0 siblings, 1 reply; 12+ messages in thread
From: Erotavlas_turbo @ 2011-11-29 11:13 UTC (permalink / raw)
  To: gcc-help

 for your fast reply.
I have understood that the support for C++11 (I hope it's right :)) is still 
not complete. But my fundamental question is how long does it take the 
development process? Is there a roadmap?

Thank you

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-11-29 16:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-25 10:24 GCC: C0x11 threading support Erotavlas_turbo
2011-11-25 12:26 ` Jonathan Wakely
2011-11-25 13:11   ` Jonathan Wakely
2011-11-25 15:19   ` Marc Glisse
2011-11-25 21:16     ` Jonathan Wakely
2011-11-26 14:31       ` Andrew MacLeod
2011-11-29 11:13 Erotavlas_turbo
2011-11-29 11:19 ` Jonathan Wakely
2011-11-29 13:30 Erotavlas_turbo
2011-11-29 15:36 ` Jonathan Wakely
2011-11-29 20:21 Erotavlas_turbo
2011-11-29 22:48 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).