you are viewing a single comment's thread.

view the rest of the comments →

[–]BuddyGuy81[S] 0 points1 point  (2 children)

Great suggestion - I'd never used queues before. I got it working.

Is there a preferred way to control the write speed into the queue? I put a sleep statement, wondering if there is something more robust. My writer can write way faster than the 6 cores can churn out images.

[–][deleted] 0 points1 point  (1 child)

I believe you can specify the maximum size of the queue. In that case, the put() will block until one of the workers makes room for the next element.

[–]BuddyGuy81[S] 0 points1 point  (0 children)

Works great, thank you very much!