aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_notify.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-03 15:16:33 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-03 17:13:19 -0700
commit41a44f79ee1e559257fb6b2c88e1eb140fe657bf (patch)
tree26556fbd4d35dc76e2c7ee5777b2533b0d3e98c6 /src/main_notify.h
parentddc39977bc530954a2497c96cb78e7def0747908 (diff)
downloadmpd-41a44f79ee1e559257fb6b2c88e1eb140fe657bf.tar.gz
mpd-41a44f79ee1e559257fb6b2c88e1eb140fe657bf.tar.xz
mpd-41a44f79ee1e559257fb6b2c88e1eb140fe657bf.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 '')
-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 db36042a7..dc743b833 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 wakeup_main_task(void);