diff options
author | 2012-11-30 21:14:25 +0100 | |
---|---|---|
committer | 2012-11-30 21:14:25 +0100 | |
commit | 907ed40fd1b1a1298e5d339f51e68df5f0b63872 (patch) | |
tree | b8802e5191a621b11c108ee322db00407b03ab23 /plugins/gtkui/coverart.c | |
parent | be472188fde7aa235c426486c42ae4e2278c9093 (diff) |
few minor optimizations
Diffstat (limited to 'plugins/gtkui/coverart.c')
-rw-r--r-- | plugins/gtkui/coverart.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/gtkui/coverart.c b/plugins/gtkui/coverart.c index f98957dc..2a803e51 100644 --- a/plugins/gtkui/coverart.c +++ b/plugins/gtkui/coverart.c @@ -22,6 +22,9 @@ #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> +#ifdef __linux__ +#include <sys/prctl.h> +#endif #include "coverart.h" #include "../artwork/artwork.h" #include "gtkui.h" @@ -109,6 +112,9 @@ redraw_playlist_cb (gpointer dt) { void loading_thread (void *none) { +#ifdef __linux__ + prctl (PR_SET_NAME, "deadbeef-gtkui-artwork", 0, 0, 0, 0); +#endif for (;;) { trace ("covercache: waiting for signal\n"); deadbeef->cond_wait (cond, mutex); |