Re: [c++-pthreads] Memory model for multithreaded C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] Memory model for multithreaded C++
- To: c++-pthreads@xxxxxxxxxxxxxxxx
- Subject: Re: [c++-pthreads] Memory model for multithreaded C++
- From: Alexander Terekhov <boo@xxxxxxxxxxx>
- Date: Fri, 17 Sep 2004 15:24:03 +0200
< Forward Inline >
-------- Original Message --------
Newsgroups: comp.programming.threads
Subject: Re: C++ support for threads
Date: Fri, 17 Sep 2004 15:13:00 +0200
Message-ID: <414AE2DC.11DD838@xxxxxx>
References: <414ADC33.874AAFFE@xxxxxxxxxx>
Joe Seigh wrote:
>
> It looks like there is some movement to support threads in C++ according
> to this link from a discussion on it in c.l.c++.m.
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1680.pdf
They better stay out of volatile mess. atomic<> "intrinsic" is the
way to go. There's no need to "revise" C/C++ volatiles. Java's
volatiles imply more constraints than acquire-on-read and release-
on-write. BTW, Dinkum is pushing Boost.Thread (like) interface:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1682.html
They better first incorporate pthread.h as <cthread>...
http://groups.google.com/groups?selm=412533CA.82703A04%40web.de
is the next step.
regards,
alexander.