File: log_pthread.h

package info (click to toggle)
multipath-tools 0.4.8%2Bgit0.761c66f-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,536 kB
  • ctags: 2,590
  • sloc: ansic: 22,254; sh: 549; makefile: 254
file content (16 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _LOG_PTHREAD_H
#define _LOG_PTHREAD_H

#include <pthread.h>

pthread_t log_thr;

pthread_mutex_t *logq_lock;
pthread_mutex_t *logev_lock;
pthread_cond_t *logev_cond;

void log_safe(int prio, const char * fmt, va_list ap);
void log_thread_start(pthread_attr_t *attr);
void log_thread_stop(void);

#endif /* _LOG_PTHREAD_H */