summaryrefslogtreecommitdiff
path: root/src/rmd_cache_frame.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_cache_frame.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_cache_frame.c')
-rw-r--r--src/rmd_cache_frame.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_cache_frame.c b/src/rmd_cache_frame.c
index 7b8a2f3..c2e37bf 100644
--- a/src/rmd_cache_frame.c
+++ b/src/rmd_cache_frame.c
@@ -29,6 +29,7 @@
#include "rmd_yuv_utils.h"
#include "rmd_cache.h"
+#include "rmd_threads.h"
#include "rmd_types.h"
#include <signal.h>
@@ -106,6 +107,8 @@ void *rmdCacheImageBuffer(ProgData *pdata) {
unsigned long long int total_received_bytes = 0;
unsigned int capture_frameno = 0;
+ rmdThreadsSetName("rmdCacheImages");
+
if (!pdata->args.zerocompression) {
fp = pdata->cache_data->ifp;
© All Rights Reserved