So I was reading about threads, and I was wondering if/how I can send output from one thread to another thread? For example I have three threads (A, B, and C). I want to send the results of A to both B and C. B will do work on what it got from A then send that to C. Finally, C will now start work.
Any suggestions? I looked at threads::shared, but not all the data needs to be accessible from each thread. (such as how A doesn't need B's output to C)
In reply to Data Between Threads by UpTide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |