]> sigrok.org Git - libsigrok.git/commit
demo: Do not use a separate thread for generating data
authorAlexandru Gagniuc <redacted>
Sun, 2 Dec 2012 00:07:10 +0000 (18:07 -0600)
committerUwe Hermann <redacted>
Sun, 2 Dec 2012 15:08:03 +0000 (16:08 +0100)
commit3b20367381bcd955e604c40d05f489f2221c036a
tree798bbb1b3babee8e22c695ed9dbbf47adcf4ab0b
parentd4bd66a0c7196fb44f6f22036e3ea452ad5870df
demo: Do not use a separate thread for generating data

We already have an event-based mechanism in place. Using a thread just
adds unneeded complexity, especially for a driver designed not for
performance, but for providing a testbed to frontends.
Generate the data in the event handler, not in a separate thread.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/demo/demo.c