]> git.gag.com Git - debian/gnuradio/blobdiff - mblock/src/lib/mb_message.cc
Merged features/inband-usb -r6431:8293 into trunk.
[debian/gnuradio] / mblock / src / lib / mb_message.cc
index 0bce455ce0b0a72b80a545243971d33e6445b3e6..ce98a931e3ac5de1769bdb96e321b7f071fe8ba4 100644 (file)
 #include <stdio.h>
 #include <pmt_pool.h>
 
-static const int CACHE_LINE_SIZE = 64;         // good guess
-
-
+static const int CACHE_LINE_SIZE = 64; // good guess
+static const int MAX_MESSAGES =  1024; // KLUDGE max number of messages in sys
+                                       //   0 -> no limit
 #if MB_MESSAGE_LOCAL_ALLOCATOR
 
-static pmt_pool global_msg_pool(sizeof(mb_message), CACHE_LINE_SIZE);
+static pmt_pool 
+global_msg_pool(sizeof(mb_message), CACHE_LINE_SIZE, 16*1024, MAX_MESSAGES);
 
 void *
 mb_message::operator new(size_t size)