summaryrefslogtreecommitdiffstats
path: root/test/test-server.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2015-01-15 14:48:08 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2015-01-30 18:19:37 +0100
commit5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5 (patch)
treeae15468bd5346b4402d84cbaf0cb6657c0d17bd5 /test/test-server.c
parent6a931a1185aa8170636b8f55c38ad91af6f897f6 (diff)
downloadkiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.tar.gz
kiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.tar.bz2
kiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.tar.xz
kiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.zip
Fixed race conditions in kiro_server_realloc
KIRO client now reacts to server realloc
Diffstat (limited to 'test/test-server.c')
-rw-r--r--test/test-server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-server.c b/test/test-server.c
index 91a3db5..87ff5d0 100644
--- a/test/test-server.c
+++ b/test/test-server.c
@@ -181,6 +181,8 @@ main (void)
buffer = kiro_trb_dma_push (rb);
print_current_frame (buffer, frame, 512, 512, rand);
frame++;
+ if (frame % 1000 == 0)
+ kiro_server_realloc (server, kiro_trb_get_raw_buffer (rb), kiro_trb_get_raw_size (rb));
}
done: