]> sigrok.org Git - libsigrok.git/commit
scpi: Synchronize read, write and write+read operations.
authorFrank Stettner <redacted>
Sat, 11 Nov 2017 15:29:55 +0000 (16:29 +0100)
committerUwe Hermann <redacted>
Fri, 1 Jun 2018 13:46:17 +0000 (15:46 +0200)
commitfd20e59caa4b2b05ddbca55f77ff8b1cf8ae0446
treed44e27c0240c1c79797dfb458b1b126befa1cd7c
parent1c5adc5ff7cb67dd6bd22ad1890aedba1e979a5f
scpi: Synchronize read, write and write+read operations.

This ensures that SCPI read/write/write+read operations are thread safe.
F.e.: If a write operation expects a return value (in other words: a
read operation), it is not allowed to be interrupted by another write
operation.

To simplify things, the SCPI helper functions are moved from
scpi/helpers.c to scpi/scpi.c and also are renamed to fit the naming
scheme.

libgpib in particular will abort the program execution in case of
concurrent operations.
Makefile.am
src/scpi.h
src/scpi/helpers.c [deleted file]
src/scpi/scpi.c