summaryrefslogtreecommitdiffstats
path: root/test/test-ring-buffer.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-07-20 14:49:11 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-07-20 14:49:11 +0200
commitfee073b676044d454220616fb99bca6586a21f19 (patch)
tree87b1198ba92bf7180b5aa1ebafe08874c5c62212 /test/test-ring-buffer.c
parentd6d430491cc7f81945e4061d3ae3bbe67593c0a7 (diff)
downloaduca-fee073b676044d454220616fb99bca6586a21f19.tar.gz
uca-fee073b676044d454220616fb99bca6586a21f19.tar.bz2
uca-fee073b676044d454220616fb99bca6586a21f19.tar.xz
uca-fee073b676044d454220616fb99bca6586a21f19.zip
Fix #72: avoid race condition
The advance_buffers variable introduced in 954bcbc was not properly locked thus leading to race conditions in the UI update thread and the actual grab thread. With this change, we always grab into a single buffer that is updated whenever the GUI is ready. This avoids latencies but might cause noticeable tearing.
Diffstat (limited to 'test/test-ring-buffer.c')
0 files changed, 0 insertions, 0 deletions