sustrik/xsnano — pull request #4 by tailhook (2012-06-02 00:03:44+00:00)
Title: Implement pipes for communication between threads

I've implemented pipes, similar in design to ypipe in libxs, however, it isn't split into underlying queue and pipe. And it uses counters, instead of pointers for accounting. The former is deemed unnecessary, and latter is done in a way it's easier to write in C.

The implementation uses sys/queue.h which is probably not present on windows. But there are implementations in various BSD distributions to embed file from there.

The use cases are: command pipes, inproc socket pipes, other thread communication.

The code is contributed under MIT license.