diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-04-23 20:40:28 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-04-23 23:25:25 +0200 |
commit | f8d25d1f7256a4515b7fb972e3302be2138c8ee1 (patch) | |
tree | b2115e34c50a56fa48d9939b57728544191d68f4 | |
parent | 5292279cbe4c228bbc31b8caf05eb6ebdfa29bde (diff) | |
download | libsigrokdecode-f8d25d1f7256a4515b7fb972e3302be2138c8ee1.tar.gz libsigrokdecode-f8d25d1f7256a4515b7fb972e3302be2138c8ee1.zip |
instance: drop an unneeded "want wait() to terminate" reset assignment
It's uncertain why srd_inst_decode() which internally gets called by the
public srd_session_send() routine used to clear the want_wait_terminate
flag. This should be cleared upon decoder instance creation and state
reset, gets raised upon termination request, but shall not get cleared
in other spots, especially not upon the availability of new input data
while the stream shall be considered in the "about to terminate, skip
all subsequent execution" state.
-rw-r--r-- | instance.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1255,7 +1255,6 @@ SRD_PRIV int srd_inst_decode(struct srd_decoder_inst *di, di->inbuflen = inbuflen; di->got_new_samples = TRUE; di->handled_all_samples = FALSE; - di->want_wait_terminate = FALSE; /* Signal the thread that we have new data. */ g_cond_signal(&di->got_new_samples_cond); |