Re: C++ Threads, what's the status quo?
Chris Thomason wrote:
ACK! I forgot the darn link:
http://groups.google.com/group/comp.lang.c++.moderated/msg/e161a53de7c2290e
Sorry for any confusion!
;^(...
Hi Chris. I took a look at this link. I also wrote a post recently
essentially saying that DCL does not work, so a bit of clarification:
DCL will work easily if one goes to hardware. It appears from this
link that assembly language instructions are being used. That
Microsoft appears to have provided "support" for atomic operations at a
higher-level is obviously not portable.
There is a large group of people that is hell-bent on finding some way
to do DCL and other tricks purely in C++ and expecting it to be
portable, and it is impossible, as I keep stating.
But, if you allow for the possibility of a few assembly language atomic
operations, you have the entire world of synchronization at your
disposal, and that will work very well.
We must qualify the statement DCL works - it works when one is allowed
to exit the realm of portability. Otherwise it does not work (in
general).
-Le Chaud Lapin-
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]