diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-12 09:42:08 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-12 10:13:06 -0700 |
commit | 95e8bdaa25c9bf840c41995aac3fb141468a72b3 (patch) | |
tree | 6e16e6fc17f6313deb1c3de294966bd3dab557af /src/rmd_flush_to_ogg.c | |
parent | 46e9069fdbc58bd1febde1a493b1fe7aa9456527 (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_flush_to_ogg.c')
-rw-r--r-- | src/rmd_flush_to_ogg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_flush_to_ogg.c b/src/rmd_flush_to_ogg.c index 87308a6..d2e7f44 100644 --- a/src/rmd_flush_to_ogg.c +++ b/src/rmd_flush_to_ogg.c @@ -29,6 +29,7 @@ #include "rmd_encode_image_buffer.h" #include "rmd_encode_sound_buffer.h" +#include "rmd_threads.h" #include "rmd_types.h" #include <pthread.h> @@ -75,6 +76,8 @@ void *rmdFlushToOgg(ProgData *pdata) { int th_st_fin = 0, v_st_fin = (pdata->args.nosound); + rmdThreadsSetName("rmdFlushToOgg"); + while (!(th_st_fin && v_st_fin)) { int audio_or_video = 0; |