On 30/03/13 02:54, chenbk wrote:
yes, I need this feature, so that can epoll wait on io thread, read network data, then write to lock-free queue and eventfd worker thread. so I think one-write-one-read-lock-free queue is very useful. thank you very much.
Once again: When interacting with network there is no queue in nanomsg itself. The data are stored in TCP tx/rx buffers. Check the source code of your operating system for the details of the queueing algorithm.
Martin