summaryrefslogtreecommitdiff
path: root/src/rmd_encode_image_buffer.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-12 09:42:08 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-12 10:13:06 -0700
commit95e8bdaa25c9bf840c41995aac3fb141468a72b3 (patch)
tree6e16e6fc17f6313deb1c3de294966bd3dab557af /src/rmd_encode_image_buffer.c
parent46e9069fdbc58bd1febde1a493b1fe7aa9456527 (diff)
threads: introduce and use rmdThreadsSetName()
Now users can easily differentiate which rmd subtasks are busy by using top-like tools in show-threads mode. Also aids in troubleshooting...
Diffstat (limited to 'src/rmd_encode_image_buffer.c')
-rw-r--r--src/rmd_encode_image_buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_encode_image_buffer.c b/src/rmd_encode_image_buffer.c
index c234aa4..f5e8b36 100644
--- a/src/rmd_encode_image_buffer.c
+++ b/src/rmd_encode_image_buffer.c
@@ -27,6 +27,7 @@
#include "config.h"
#include "rmd_encode_image_buffer.h"
+#include "rmd_threads.h"
#include "rmd_types.h"
#include <errno.h>
@@ -35,6 +36,8 @@
void *rmdEncodeImageBuffer(ProgData *pdata) {
unsigned int encode_frameno = 0;
+ rmdThreadsSetName("rmdEncodeImages");
+
pdata->th_encoding_clean = 0;
while (pdata->running) {
© All Rights Reserved