diff --git a/include/cbufpool.h b/include/cbufpool.h new file mode 100644 index 0000000..71d8576 --- /dev/null +++ b/include/cbufpool.h @@ -0,0 +1,10 @@ +/** + * As the initializations of cbufs is complicated and time consuming + * with all this shared memory initialization stuff and each cbuf + * always is the same (at least for this application) we don't free + * them after they are not used anymore. + * Instead we store the in this pool and reuse then the next time + * they are needed. + * + * Well thats the idea of this. + */ diff --git a/src/cbufpool.c b/src/cbufpool.c new file mode 100644 index 0000000..71d8576 --- /dev/null +++ b/src/cbufpool.c @@ -0,0 +1,10 @@ +/** + * As the initializations of cbufs is complicated and time consuming + * with all this shared memory initialization stuff and each cbuf + * always is the same (at least for this application) we don't free + * them after they are not used anymore. + * Instead we store the in this pool and reuse then the next time + * they are needed. + * + * Well thats the idea of this. + */