summaryrefslogtreecommitdiffstats
path: root/test/test-server.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2015-01-30 18:26:50 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2015-01-30 18:26:50 +0100
commit8f60d5536ef04f53969bb0a6e6ba5bea46f734de (patch)
treeae15468bd5346b4402d84cbaf0cb6657c0d17bd5 /test/test-server.c
parentfb72ad6a4685274d37a73b048d50a7761c19f3c6 (diff)
parent5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5 (diff)
downloadkiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.tar.gz
kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.tar.bz2
kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.tar.xz
kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.zip
Merge pull request #17 from ufo-kit/serverRealloc
Added server-side reallocation request
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: