summaryrefslogtreecommitdiff
path: root/src/rmd_get_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_get_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_get_frame.c')
-rw-r--r--src/rmd_get_frame.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_get_frame.c b/src/rmd_get_frame.c
index a9e4daa..8d8b8d8 100644
--- a/src/rmd_get_frame.c
+++ b/src/rmd_get_frame.c
@@ -32,6 +32,7 @@
#include "rmd_getzpixmap.h"
#include "rmd_poll_events.h"
#include "rmd_rectinsert.h"
+#include "rmd_threads.h"
#include "rmd_update_image.h"
#include "rmd_yuv_utils.h"
#include "rmd_types.h"
@@ -268,6 +269,8 @@ void *rmdGetFrame(ProgData *pdata) {
//the current full screenshot
int init_img1 = 0, init_img2 = 0, img_sel, d_buff;
+ rmdThreadsSetName("rmdGetFrame");
+
img_sel = d_buff = pdata->args.full_shots;
if ((init_img1 = rmdFirstFrame(pdata, &image) != 0)) {
© All Rights Reserved