Commit 38df0ad7 authored by Davis King's avatar Davis King

Added a comment

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403716
parent 7f675818
...@@ -58,6 +58,7 @@ int main() ...@@ -58,6 +58,7 @@ int main()
double val = 2; double val = 2;
thread_function t4(thread_increment, ref(val)); thread_function t4(thread_increment, ref(val));
t4.wait(); // wait for t4 to finish before printing val. t4.wait(); // wait for t4 to finish before printing val.
// Print val. It will now have a value of 3.
cout << "val: " << val << endl; cout << "val: " << val << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment