Skip to content

Commit dd3ec01

Browse files
added dataflow example
1 parent 2749c6d commit dd3ec01

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ target_link_libraries(dynamic_traversal ${PROJECT_NAME} Threads::Threads)
153153
add_executable(framework ${TF_EXAMPLE_DIR}/framework.cpp)
154154
target_link_libraries(framework ${PROJECT_NAME} Threads::Threads)
155155

156+
add_executable(dataflow ${TF_EXAMPLE_DIR}/dataflow.cpp)
157+
target_link_libraries(dataflow ${PROJECT_NAME} Threads::Threads)
158+
156159
endif()
157160

158161
# -----------------------------------------------------------------------------

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ MIT License
22

33
Copyright (c) 2018-2019 T.-W. Huang, C.-X. Lin, G. Guo, and M. Wong
44

5+
The University of Illinois at Urbana-Champaign, IL, USA
6+
57
Permission is hereby granted, free of charge, to any person obtaining a copy
68
of this software and associated documentation files (the "Software"), to deal
79
in the Software without restriction, including without limitation the rights

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ The folder `example/` contains several examples and is a great place to learn to
774774
| [taskflow.cpp](./example/taskflow.cpp)| benchmarks taskflow on different task dependency graphs |
775775
| [executor.cpp](./example/executor.cpp)| shows how to create multiple taskflow objects sharing one executor to avoid the thread over-subscription problem |
776776
| [framework.cpp](./example/framework.cpp)| shows the usage of framework to create reusable task dependency graphs |
777+
| [dataflow.cpp](./example/dataflow.cpp)| demonstrates how to pass data from tasks to their successors and to use cpp-taskflow for synchronization |
777778

778779
# Get Involved
779780

@@ -810,7 +811,7 @@ Cpp-Taskflow is being actively developed and contributed by the following people
810811
- [Patrik Huber][Patrik Huber] helped fixed typos in the documentation
811812
- [ForgeMistress][ForgeMistress] provided API ideas about sharing the executor to avoid thread over-subscriptiong issues
812813
- [Alexander Neumann](https://github.com/Neumann-A) helped modify the cmake build to make Cpp-Taskflow importable from external cmake projects
813-
- [Paolo Bolzoni](https://github.com/paolobolzoni) helped remove extraneous semicolons to suppress extra warning during compilation
814+
- [Paolo Bolzoni](https://github.com/paolobolzoni) helped remove extraneous semicolons to suppress extra warning during compilation and contributed to a dataflow example
814815

815816
Meanwhile, we appreciate the support from many organizations for our development on Cpp-Taskflow.
816817
Please [let me know][email me] if I forgot someone!
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
22
3+
2019/02/25 - contributed by Paolo Bolzoni
4+
35
cpp-taskflow works on directed acyclic graphs.
46
And here we want to pass information between the flow elements.
57

0 commit comments

Comments
 (0)