aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_notify.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-06 18:31:59 +0200
committerMax Kellermann <max@duempel.org>2008-10-06 18:31:59 +0200
commit700f18eee55cd6a5906bd526f62e958647cea221 (patch)
tree1167532d758050ba3acfb9ee2026b6350a005af0 /src/main_notify.h
parent19a4803bc926efa8c61f0e1b47cc8eb76d10bc96 (diff)
downloadmpd-700f18eee55cd6a5906bd526f62e958647cea221.tar.gz
mpd-700f18eee55cd6a5906bd526f62e958647cea221.tar.xz
mpd-700f18eee55cd6a5906bd526f62e958647cea221.zip
main_notify: define main_task so we can use it for assertions
It'll be easier to keep track of what code runs in what task/thread this way.
Diffstat (limited to 'src/main_notify.h')
-rw-r--r--src/main_notify.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main_notify.h b/src/main_notify.h
index dd30dc5d6..aaa1f20b4 100644
--- a/src/main_notify.h
+++ b/src/main_notify.h
@@ -21,6 +21,10 @@
#ifndef MAIN_NOTIFY_H
#define MAIN_NOTIFY_H
+#include <pthread.h>
+
+extern pthread_t main_task;
+
void init_main_notify(void);
void deinit_main_notify(void);