pthread synchronized blocking queue

后端 未结 2 705
Happy的楠姐
Happy的楠姐 2020-12-02 13:54

I\'m looking for a recommended implementation of a thread-safe blocking queue (multi producer/consumer) in C using pthread synchronization semantics.

2条回答
  •  天涯浪人
    2020-12-02 14:24

    Try APR queues. It's used by the apache web server and pretty well tested.

    http://apr.apache.org/docs/apr-util/1.3/apr__queue_8h.html

提交回复
热议问题