Commit f5a0dce8 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Update tests

parent af39e893
......@@ -67,12 +67,12 @@ namespace dynamicgraph
// synchronize with method clear
wmutex.lock();
converter (buffer[backIdx], data);
// assert(!full());
// No need to synchronize with reader here because:
// - if the buffer was not empty, then it stays not empty,
// - if it was empty, then the current value will be used at next time. It
// means the transmission bandwidth is too low.
backIdx = (backIdx+1) % N;
assert(!full());
if (!init) {
last = buffer[backIdx];
init = true;
......
......@@ -13,6 +13,7 @@ time.sleep(1)
N = 1
s = rqe.sig
rqe.readQueue (s.time)
s.recompute (s.time + 1)
# print s.value
......
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