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