This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]