Mux does no longer displays details in status overview.

Removed a redundant mutex lock - Module::msgStatus already locks the module.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2236 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-09-22 14:15:01 +00:00
parent c7d2605904
commit a3976d949a
1 changed files with 8 additions and 3 deletions

View File

@ -131,6 +131,7 @@ public:
}
protected:
virtual void statusParams(String& str);
virtual void statusDetail(String& str);
private:
bool m_first; // First init flag
String m_prefix; // Module's prefix (name/)
@ -634,11 +635,15 @@ bool MuxModule::chanAttach(Message& msg)
void MuxModule::statusParams(String& str)
{
Module::statusParams(str);
Lock lock(this);
str << "count=" << m_sources.count() << ",format=channels|targetid";
str.append("count=",",") << m_sources.count() << ",format=channels|targetid";
}
void MuxModule::statusDetail(String& str)
{
Module::statusDetail(str);
for (ObjList* o = m_sources.skipNull(); o; o = o->skipNext()) {
MuxSource* s = static_cast<MuxSource*>(o->get());
str << ";" << s->id() << "=" << s->channels() << "|" << s->targetid();
str.append(s->id(),",") << "=" << s->channels() << "|" << s->targetid();
}
}