| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ and is by far faster, more expressive, and easier for drop-in integration than e | |||
| 32 | 32 | The following example [simple.cpp](./example/simple.cpp) shows the basic API you need to use Cpp-Taskflow. | |
| 33 | 33 | ||
| 34 | 34 | ```cpp | |
| 35 | - #include "taskflow.hpp" // the only include you need | ||
| 35 | + #include <taskflow.hpp> // the only include you need | ||
| 36 | 36 | ||
| 37 | 37 | int main(){ | |
| 38 | 38 | ||
@@ -195,7 +195,7 @@ auto B = tf.silent_emplace([] (auto& subflow) { | |||
| 195 | 195 | auto B3 = subflow.silent_emplace([](){}).name("B3"); | |
| 196 | 196 | B1.precede(B3); | |
| 197 | 197 | B2.precede(B3); | |
| 198 | - }).name("TaskB"); | ||
| 198 | + }).name("B"); | ||
| 199 | 199 | ||
| 200 | 200 | A.precede(B); // B runs after A | |
| 201 | 201 | A.precede(C); // C runs after A | |
@@ -208,7 +208,7 @@ std::cout << tf.dump_topologies(); | |||
| 208 | 208 | ``` | |
| 209 | 209 | ||
| 210 | 210 | By default, a subflow graph joins to its parent node. | |
| 211 | - This guarantees a subflow graph to finish before executing the successors of | ||
| 211 | + This guarantees a subflow graph to finish before the successors of | ||
| 212 | 212 | its parent node. | |
| 213 | 213 | You can disable this feature by calling `subflow.detach()`. | |
| 214 | 214 | Detaching the above subflow will result in the following execution flow. | |
@@ -231,7 +231,7 @@ Detaching the above subflow will result in the following execution flow. | |||
| 231 | 231 | ||
| 232 | 232 | Cpp-Taskflow has an unified interface for static and dynamic tasking. | |
| 233 | 233 | To create a subflow for dynamic tasking, | |
| 234 | - emplace a task callable with one argument of type `tf::SubflowBuilder`. | ||
| 234 | + emplace a callable on one argument of type `tf::SubflowBuilder`. | ||
| 235 | 235 | ||
| 236 | 236 | ```cpp | |
| 237 | 237 | auto A = tf.silent_emplace([] (tf::SubflowBuilder& subflow) {}); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,14 @@ If you cannot find a solution here, please post an issue [here][Github issues]. | |||
| 11 | 11 | It has been applied in many academic and industry projects to scale up their existing workload. | |
| 12 | 12 | A research project [OpenTimer][OpenTimer] has used Cpp-Taskflow to deal with hundreds of millions of tasks. | |
| 13 | 13 | ||
| 14 | + ### Q: What are the differences between Cpp-Taskflow and other tasking libraries? | ||
| 15 | + | ||
| 16 | + **A:** From our humble opinion, Cpp-Taskflow is superior in its tasking API, interface, and performance. | ||
| 17 | + In most cases, users can quickly master Cpp-Taskflow to create large and complex dependency graphs | ||
| 18 | + in just a few minutes. | ||
| 19 | + The performance scales very well and is comparable to hard-coded multi-threading. | ||
| 20 | + Of course, the judge is always left for users -:) | ||
| 21 | + | ||
| 14 | 22 | ## Compile Issues | |
| 15 | 23 | ||
| 16 | 24 | ### Q: I can't get Cpp-Taskflow compiled in my project! | |
@@ -59,10 +67,6 @@ Try the `dump` method to debug the graph before dispatching your taskflow graph. | |||
| 59 | 67 | If there is no cycle, make sure you are using `future.get()` in the right way, | |
| 60 | 68 | i.e., not blocking your control flow. | |
| 61 | 69 | ||
| 62 | - | ||
| 63 | - | ||
| 64 | - | ||
| 65 | - | ||
| 66 | 70 | * * * | |
| 67 | 71 | [Github issues]: https://github.com/cpp-taskflow/cpp-taskflow/issues | |
| 68 | 72 | [OpenTimer]: https://github.com/OpenTimer/OpenTimer | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | // TaskA---->TaskB---->TaskD | |
| 4 | 4 | // TaskA---->TaskC---->TaskD | |
| 5 | 5 | ||
| 6 | - #include "taskflow.hpp" // the only include you need | ||
| 6 | + #include <taskflow.hpp> // the only include you need | ||
| 7 | 7 | ||
| 8 | 8 | int main(){ | |
| 9 | 9 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments