TThreadedQueue not capable of multiple consumers?

前端 未结 5 544
灰色年华
灰色年华 2020-11-29 02:11

Trying to use the TThreadedQueue (Generics.Collections) in a single producer multiple consumer scheme. (Delphi-XE). The idea is to push objects into a queue and let several

5条回答
  •  一生所求
    2020-11-29 02:56

    I don't think TThreadedQueue is supposed to support multiple consumers. It's a FIFO, as per the help file. I am under the impression that there's one thread pushing and another one (just one!) popping.

提交回复
热议问题