thread management conundrum
Posted: Mon May 07, 2012 6:45 pm
i'm working on this project and have run into a bit of a snag.
here's an outline of the situation.
threads:
2x - capture camera data
1x - worker thread manager
16x - worker thread
channels:
capture camera datas <--> worker thread manager
worker thread manager <--> worker threads
description:
after capturing a few kilobytes of data in a capture camera data thread it should send an alert to the worker thread manager that it has data that should go to a worker thread to be processed.
question:
how cant i send data from a capture camera data thread to send data directly to a worker thread? i need maximum speed on this so relaying data is not ok. i'm fine with using inline assembly.
here's an outline of the situation.
threads:
2x - capture camera data
1x - worker thread manager
16x - worker thread
channels:
capture camera datas <--> worker thread manager
worker thread manager <--> worker threads
description:
after capturing a few kilobytes of data in a capture camera data thread it should send an alert to the worker thread manager that it has data that should go to a worker thread to be processed.
question:
how cant i send data from a capture camera data thread to send data directly to a worker thread? i need maximum speed on this so relaying data is not ok. i'm fine with using inline assembly.