I am new to Intel TBB. I am not clear on the purpose of setting a task's reference count to 3 while waiting on the 2 children to get executed.
My doubt is if the individual child tasks complete their execution and reduce the reference count by 1 . and eventually on the completion of the 2 child tasks the ref count now is zero and hence the parent/root can be executed. But what is the purpose to set it to 3?
PL correct me if my concept is wrong.