[ECOS] Thread safe memory allocations
Fri Aug 15 11:26:00 GMT 2008
On Thu, Aug 07, 2008 at 01:42:22PM +0200, Stefan Sommerfeld wrote:
> I use Doug Lea's memory allocation and enabled "Make thread safe", but
> for me it looks like it doesn't do any locking. There's a MALLOC_LOCK
> macro which is empty. I have sometimes a crash getting mallinfo, that's
> why I searched for a lock inside getStatus().
> Is the thread safe implementation really working?
The locking should be happening at a higher level. All allocations
should be going through the code in
although being a humble C programmer all this C++ classes and
templates stuff gets me confused. This template code uses scheduler
locking to make it thread safe.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss