I'm looking for a recommended implementation of a thread-safe blocking queue (multi producer/consumer) in C using pthread synchronization semantics.
相关问题
- Multiple sockets for clients to connect to
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
- Equivalent of std::pair in C
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
Here's one I use
threadqueue.h
threadqueue.c