]> sigrok.org Git - pulseview.git/commit
SignalBase: Speed up conversion and prevent leaving samples unconverted
authorSoeren Apel <redacted>
Mon, 12 Mar 2018 14:58:06 +0000 (15:58 +0100)
committerSoeren Apel <redacted>
Mon, 12 Mar 2018 14:58:06 +0000 (15:58 +0100)
commit784f6c75bf8d878b395b8eb7b5e92fa24d9b32ba
tree986471802ec82f01a6b3bc3fc6b37b36bb0d3fb6
parentb10b58f40fd9c71f1a8b020077ecda65cebc578c
SignalBase: Speed up conversion and prevent leaving samples unconverted

Unconverted samples can happen due to a race condition: being notified
of new samples coming in is ignored when the thread is already executing.
If these notifications however were the last ones sent out because the
segment was completed right after, the currently ongoing conversion
will finish but not be restarted with the final sample range.

With this patch, this is prevented.
pv/data/signalbase.cpp
pv/data/signalbase.hpp