[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] memory pools question
From: |
jblackarty |
Subject: |
Re: [lwip-users] memory pools question |
Date: |
Mon, 30 Jan 2012 09:15:56 +0700 |
>> No! In general case, sizes are NOT different. At compile-time macro
>> expansions define each size, but at run-time sys_mbox_new() cannot match
>> given
>> numeric value to one of macros if their values are equal. That's the
>> problem !
> What's the problem there? You can just use one pool then. The
> number of mboxes allocated shouldn't be limited by the sys port:
> instead, you should have enough mboxes to allocate all raw, top and
> UDP connections. Limiting the number of these is the expected way to limit
> memory usage.
Ok. I give up. I just tried to explain that I have to implement own
memory pool mechanism since lwip's one can't be used.