Make log_pthread more robust
[multipath-tools/.git] / libmultipath / log_pthread.h
1 #ifndef _LOG_PTHREAD_H
2 #define _LOG_PTHREAD_H
3
4 #include <pthread.h>
5
6 extern pthread_t log_thr;
7
8 extern pthread_mutex_t logq_lock;
9 extern pthread_mutex_t logev_lock;
10 extern pthread_cond_t logev_cond;
11
12 extern int logq_running;
13
14 void log_safe(int prio, const char * fmt, va_list ap);
15 void log_thread_start(pthread_attr_t *attr);
16 void log_thread_stop(void);
17
18 #endif /* _LOG_PTHREAD_H */