From 95e8bdaa25c9bf840c41995aac3fb141468a72b3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 12 Jul 2020 09:42:08 -0700 Subject: 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... --- src/rmd_cache_frame.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rmd_cache_frame.c') 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 @@ -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; -- cgit v1.2.3