![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include "common.h"#include "tbb/task.h"
Include dependency graph for SimpleParallelSumTree.cpp:Go to the source code of this file.
Classes | |
| class | SimpleSumTask |
Functions | |
| Value | SimpleParallelSumTree (TreeNode *root) |
Definition at line 64 of file SimpleParallelSumTree.cpp.
References tbb::task::allocate_root(), and tbb::task::spawn_root_and_wait().
Referenced by main().
{
Value sum;
SimpleSumTask& a = *new(tbb::task::allocate_root()) SimpleSumTask(root,&sum);
tbb::task::spawn_root_and_wait(a);
return sum;
}
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.