diff options
author | eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-04-30 03:52:31 +0000 |
---|---|---|
committer | eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-04-30 03:52:31 +0000 |
commit | 9d1423b9506c89a51a10b6119d01ce9a82a13b0c (patch) | |
tree | 186e1b20618bf805dd262572bd3b2778b767d201 /mblock/src | |
parent | 7f202514385708941073930bc6d9a5237bb89826 (diff) |
Merged features/inband-usb -r6431:8293 into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8295 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'mblock/src')
-rw-r--r-- | mblock/src/lib/mb_message.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mblock/src/lib/mb_message.cc b/mblock/src/lib/mb_message.cc index 0bce455ce0..ce98a931e3 100644 --- a/mblock/src/lib/mb_message.cc +++ b/mblock/src/lib/mb_message.cc @@ -26,12 +26,13 @@ #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) |