This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
mallinfo and scheduler lock
- From: Riadh Elloumi <riadh dot elloumi at parrot dot com>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 01 Jul 2008 09:28:33 +0200
- Subject: [ECOS] mallinfo and scheduler lock
Dear all,
We are using mallinfo() call to display some statistics on heap usage in
our products. But I have noticed that mallinfo locks the scheduler by
calling cyg_scheduler_lock (I have seen it in gdb, even if I cannot have
all the backtrace because of mixed C and C++). I had a look at the code
but don't find when the scheduler lock is called.
Could you confirm this information please? If the scheduler lock is
necessary to examine all the heap, it would be helpful to add this
information to the documentation, because my understanding is that
locking the scheduler will block DSR and threads from execution, and so
modify the system behavior.
Best regards,
Riadh.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss