From 1563d3e87f95d3900a43965c0da9df9e81f76edb Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 20 Aug 2013 10:53:34 +0100 Subject: [PATCH] added idea comment for a cbuf pool to not always reinitialize these all the time... --- include/cbufpool.h | 10 ++++++++++ src/cbufpool.c | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 include/cbufpool.h create mode 100644 src/cbufpool.c 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. + */