Add a ring buffer implementation.

This is intented to replace the pipe between the writer and reader 
threads. That way we can have a much better control of cancelation 
situations. Still to be optimized.
This commit is contained in:
Vreixo Formoso
2007-12-23 02:24:21 +01:00
parent 9ec475a900
commit 94e687d9d3
6 changed files with 463 additions and 3 deletions

View File

@@ -36,7 +36,8 @@ src_libisofs_la_SOURCES = \
src/ecma119.c \
src/ecma119_tree.h \
src/ecma119_tree.c \
src/writer.h
src/writer.h \
src/buffer.c
libinclude_HEADERS = \
src/libisofs.h
@@ -46,6 +47,7 @@ libinclude_HEADERS = \
noinst_PROGRAMS = \
demo/lsl \
demo/cat \
demo/catbuffer \
demo/tree \
demo/ecma119tree \
demo/iso
@@ -58,6 +60,10 @@ demo_cat_CPPFLAGS = -Isrc
demo_cat_LDADD = $(src_libisofs_la_OBJECTS) $(THREAD_LIBS)
demo_cat_SOURCES = demo/cat.c
demo_catbuffer_CPPFLAGS = -Isrc
demo_catbuffer_LDADD = $(src_libisofs_la_OBJECTS) $(THREAD_LIBS)
demo_catbuffer_SOURCES = demo/cat_buffer.c
demo_tree_CPPFLAGS = -Isrc
demo_tree_LDADD = $(src_libisofs_la_OBJECTS) $(THREAD_LIBS)
demo_tree_SOURCES = demo/tree.c