set useful thread names for all spawned threads

This commit is contained in:
Stefan Seyfried
2017-02-12 15:17:32 +01:00
parent cece5efac4
commit b9da7f01bf
15 changed files with 29 additions and 6 deletions

View File

@@ -108,6 +108,7 @@
#include <poll.h>
#include <sys/types.h>
#include <driver/audioplay.h>
#include <system/set_threadname.h>
/*
TODO:
- ICECAST support
@@ -1603,6 +1604,7 @@ void CacheFillThread(void *c)
if(scache->closed)
return;
set_threadname("netfile:cache");
dprintf(stderr, "CacheFillThread: thread started, using stream %p\n", scache->fd);
buf = (char*)malloc(CACHEBTRANS);