Commit b4aa9a9e authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

removed prints

parent b5c1875a
......@@ -443,7 +443,7 @@ int CaCuTangoReadImpl::m_unref(const std::string &src, const std::string & cha)
const int chan_refcnt = m_link_unref(src, cha); // remove reference to src on chid, lock guarded
if(chan_refcnt < 0) { // src not monitored in cha!
d->log.write("ca-cu-tango-read-impl", CuLog::LevelError, "unsubscribe request failed: source \"%s\" not monitor in channel \"%s\"",
src.c_str(), cha.c_str());
src.c_str(), cha.c_str());
}
else {
refcnt = m_link_refcnt(src); // get the total references on src, lock guarded
......@@ -588,23 +588,9 @@ void CaCuTangoReadImpl::onTimeout(CuTimer *l) {
}
else if(l == d->sylinks_tmr) {
// on the main thread
std::map<int, std::list<std::string> >us = d->sylinks.stillUnset();
if(us.size() == 0)
printf("\e[0;35mCaCuTangoReadImpl.onTimeout: no links in wait...\n");
else {
d->sylinks.timeoutCheck(d->sylink_timeo);
/// TEST
for(std::map<int, std::list<string> >::const_iterator it = us.begin(); it != us.end(); ++it) {
printf("\e[1;32m%d\e[0m --> { ", it->first);
for(const std::string& s : it->second)
printf("%s, ", s.c_str());
printf( "}\n");
}
/// END TEST
// maybe d->sylinks.timeoutCheck has set data on all links associated to one (or more) fd.
m_sync_reply_on_fds_allset();
}
d->sylinks.timeoutCheck(d->sylink_timeo);
// maybe d->sylinks.timeoutCheck has set data on all links associated to one (or more) fd.
m_sync_reply_on_fds_allset();
d->tmr_srvc.restart(d->sylinks_tmr, CASYLINKS_CHECK_TMR_SEC * 1000);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment