Commit 189552f9 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Add debug output

parent b9e4f3cd
......@@ -81,6 +81,7 @@ namespace dynamicgraph {
for (Triggers_t::const_iterator _s = triggers.begin();
_s != triggers.end(); ++_s)
(*_s)->recompute (time);
std::cout << "trigger: " << val << std::endl;
}
return ret;
}
......
......@@ -71,7 +71,7 @@ namespace dynamicgraph
}
template <typename T>
T& BindedSignal<T>::reader (T& data, int)
T& BindedSignal<T>::reader (T& data, int time)
{
if (!entity->readQueue_) {
data = last;
......@@ -82,6 +82,10 @@ namespace dynamicgraph
else {
data = queue.front();
queue.pop();
if (queue.size() < 10) {
std::cout << signal->getName() << ": queue size is " << queue.size()
<< " at time " << time << std::endl;
}
last = data;
}
qmutex.unlock();
......
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