Does a lock-free queue “multiple producers-single consumer” exist for Delphi?

后端 未结 4 1622
一整个雨季
一整个雨季 2021-02-20 01:43

I\'ve found several implementations for single producer-single consumer, but none for multiple producer-single consumer.

Does a lock-free queue for \"multiple producers-

4条回答
  •  我在风中等你
    2021-02-20 01:54

    Lock-free queue from the OmniThreadLibrary supports multiple producers. You can use it separately from the threading library (i.e. you can use OtlContainers unit in any other framework).

    As the Daniele pointed below, there are two queues in the OmniThreadLibrary. The one in the OtlContainers supports multiple producers and multiple consumers while the "smarter" version in OtlComm (which is just a wrapper for the simpler version) is only single producer/single consumer.

    Documentation is still a big problem of the OmniThreadLibrary project :(. Some information on the queue can be found here .

提交回复
热议问题