<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 08/19/2011 01:53 PM, David W Noon wrote:
<blockquote cite="mid:20110819125352.6d297c0c@memphis.local"
type="cite"><br>
<pre wrap="">The 2011 C++ standard does not, but GCC and a few other compilers offer
a facility called OpenMP that parallelises loops; it works for C, C++
and FORTRAN, at least within GCC.
</pre>
</blockquote>
I do know about OpenMP and I seem to remember that there is an
article about same in the FPC Wiki. <br>
<br>
A C++ extension might use some syntax-candy (like "parallel") to
make OpenMP (hidden in a library) easily usable. <br>
<br>
std::async(), std::future and std::promise seems to be provide some
"sntax candy" for making threads more usable. <br>
<br>
here in the FAQ they write: <br>
"The <b>packaged_task</b> type is provided to simplify launching a
thread to execute a task. In particular, it takes care of setting up
a <b>future</b> connected to a <b>promise</b> and to provides the
wrapper code to put the return value or exception from the task into
the <b>promise</b>."<br>
<br>
-Michael<br>
</body>
</html>