Major rewrite of the SilcThreadQueue API
authorPekka Riikonen <priikone@silcnet.org>
Sat, 23 Feb 2008 13:46:52 +0000 (15:46 +0200)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 23 Feb 2008 13:46:52 +0000 (15:46 +0200)
commit76c779783817ba7cdbe67ca83971134ce70e662f
treef19f9071731b5ee3412c98791d1954307efbda1d
parent480c4f6e83cbdec38af98419430450b9fd8600f8
Major rewrite of the SilcThreadQueue API

The new API allows creation of queues with multiple pipes.  Each pipe
is independently lockable and waitable.  A queue with one pipe is same
as the old SilcThreadQueue.

The queue now also supports FIFO order when popping data from the pipes.
By default the order is LIFO.
TODO
lib/silcutil/silcthreadqueue.c
lib/silcutil/silcthreadqueue.h
lib/silcutil/tests/test_silcthreadqueue.c