diff options
Diffstat (limited to 'src/rmd_threads.c')
-rw-r--r-- | src/rmd_threads.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rmd_threads.c b/src/rmd_threads.c index 7facba0..40fe94a 100644 --- a/src/rmd_threads.c +++ b/src/rmd_threads.c @@ -47,7 +47,8 @@ #include <time.h> #include <unistd.h> -void rmdThreads(ProgData *pdata) { +void rmdThreads(ProgData *pdata) +{ pthread_t image_capture_t, image_encode_t, image_cache_t, @@ -170,6 +171,7 @@ void rmdThreads(ProgData *pdata) { pthread_join(timer_t,NULL); } -void rmdThreadsSetName(const char *name) { +void rmdThreadsSetName(const char *name) +{ prctl(PR_SET_NAME, (unsigned long)name, 0, 0, 0); } |