summaryrefslogtreecommitdiff
path: root/src/rmd_timer.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-13 00:50:22 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-13 03:31:15 -0700
commit5bf7e838d38debacd4ad624f1f3024b26e83f9eb (patch)
tree8add4226ff90096d3ff91f936b74c372d698c06d /src/rmd_timer.c
parentcbce2f4841a9281d10e6d01ee58cfa910965a82c (diff)
*: more rmdThreadsSetName() callers
Name the timer and sound capture threads as well, and fixup the rmd{Encode,Cache}Sounds names -> rmd{Encode,Cache}Sound
Diffstat (limited to 'src/rmd_timer.c')
-rw-r--r--src/rmd_timer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rmd_timer.c b/src/rmd_timer.c
index 6c3e483..ff9d068 100644
--- a/src/rmd_timer.c
+++ b/src/rmd_timer.c
@@ -27,6 +27,7 @@
#include "config.h"
#include "rmd_timer.h"
+#include "rmd_threads.h"
#include "rmd_types.h"
#include <pthread.h>
@@ -41,6 +42,8 @@
void *rmdTimer(ProgData *pdata){
struct timespec delay;
+ rmdThreadsSetName("rmdTimer");
+
delay.tv_sec = 1.f / pdata->args.fps;
delay.tv_nsec = 1000000000.f / pdata->args.fps - delay.tv_sec * 1000000000.f;
© All Rights Reserved