As stated before, I'm quite new to TBB and trying to write some example projects to get familiar and measure performance.
One thing that I'd like to do, is to utlilize "parallel_while" in combination with a concurrent_queue. The idea is that a network server constantly adds items to the queue, which is in turn processed in parallel by parallel_while.
I cannot seem to figure it out, and I also cannot seem to find any documentation.
I'm currently stuck at trying to get an iterator to the queue, doing something like this:
concurrent_queue ::iterator myIt = fileQueue.begin();
error C2039: 'begin' : is not a member of 'tbb::strict_ppl::concurrent_queue'
I'm not sure why there wouldn't be a begin() member. Are there any examples somebody could point me to? Again, I'd just like to process queue items (order of processing is not relevant) in parallel.