Update TBB version for compiling on newer OSes #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should solve #11, tested initially on arch with tbb2021.5.0
Changes:
TBB:
input_node
tosource_node
,input_node
was renamed for newer TBB versions;source_node
requirements (the main change is the function now receivesflow_control
as parameter)Docker:
Bugfix:
media
, this was only noticed now that we were able to run outside the dockerDocumentation
TBB graph:
To make theses changes, I had to study how TBB was being used and the documentation from both versions of TBB, What I understood is that the TBB is being used in the following way:
There are 3 nodes on the graph:
and the edges are:
The
_cameraNode
get a new camera frame and if the_limiterNode
counter is <1 the_limiterNode
count is incremented and the_visionNode
is trigered, if the_limiterNode
counter is at 1 the_cameraNode
waits. The_visionNode
when triggered, processes the frame and when its done it decrements the_limiterNode
counter.https://spec.oneapi.io/versions/latest/elements/oneTBB/source/flow_graph/input_node_cls.html
https://oneapi-src.github.io/oneTBB/main/tbb_userguide/Data_Flow_Graph.html
documentation for specific tbb versions can be found at repo releases https://github.com/oneapi-src/oneTBB/releases