mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-27 12:16:31 +00:00
log_level = LOG_LEVEL_INFO
This commit is contained in:
@@ -44,8 +44,12 @@ pthread_mutex_t log_mutex;
|
||||
#define LOG_LEVEL_DEBUG 3
|
||||
|
||||
|
||||
#define LOGGING_INIT assert(!pthread_mutex_init(&log_mutex, NULL))
|
||||
#define LOGGING_DESTROY assert(!pthread_mutex_destroy(&log_mutex))
|
||||
#define LOGGING_INIT { \
|
||||
log_level = LOG_LEVEL_INFO; \
|
||||
assert(!pthread_mutex_init(&log_mutex, NULL)); \
|
||||
}
|
||||
|
||||
#define LOGGING_DESTROY assert(!pthread_mutex_destroy(&log_mutex))
|
||||
|
||||
#define LOGGING_LOCK assert(!pthread_mutex_lock(&log_mutex))
|
||||
#define LOGGING_UNLOCK assert(!pthread_mutex_unlock(&log_mutex))
|
||||
|
||||
Reference in New Issue
Block a user