diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-27 08:42:44 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-27 12:43:44 +0100 |
commit | c22cbd433a6637466d5e142e900a117048024728 (patch) | |
tree | b821f3d5eb6658aa59ad7ae0e3758df9154f89dd | |
parent | f98f41714fc5c7516f614e0d453f6226533d981d (diff) | |
download | libsigrokdecode-c22cbd433a6637466d5e142e900a117048024728.tar.gz libsigrokdecode-c22cbd433a6637466d5e142e900a117048024728.zip |
instance.c: Add a debug message for thread creation.
-rw-r--r-- | instance.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1054,9 +1054,12 @@ SRD_PRIV int srd_inst_decode(struct srd_decoder_inst *di, Py_DecRef(py_res); } else { /* If this is the first call, start the worker thread. */ - if (!di->thread_handle) - di->thread_handle = g_thread_new("di_thread", + if (!di->thread_handle) { + srd_dbg("No worker thread for this decoder stack " + "exists yet, creating one: %s.", di->inst_id); + di->thread_handle = g_thread_new(di->inst_id, di_thread, di); + } /* Push the new sample chunk to the worker thread. */ g_mutex_lock(&di->data_mutex); |