diff --git a/lib/include/srslte/common/logger_file.h b/lib/include/srslte/common/logger_file.h index f4bfd4582..956753f7a 100644 --- a/lib/include/srslte/common/logger_file.h +++ b/lib/include/srslte/common/logger_file.h @@ -67,7 +67,6 @@ private: bool is_running; std::string filename; pthread_cond_t not_empty; - pthread_cond_t not_full; pthread_mutex_t mutex; pthread_t thread; std::deque buffer; diff --git a/lib/src/common/logger_file.cc b/lib/src/common/logger_file.cc index 12fcbb3ba..d89dfac0c 100644 --- a/lib/src/common/logger_file.cc +++ b/lib/src/common/logger_file.cc @@ -54,14 +54,12 @@ logger_file::~logger_file() { } pthread_mutex_destroy(&mutex); pthread_cond_destroy(¬_empty); - pthread_cond_destroy(¬_full); } } void logger_file::init(std::string file, int max_length_) { pthread_mutex_init(&mutex, NULL); pthread_cond_init(¬_empty, NULL); - pthread_cond_init(¬_full, NULL); max_length = (int64_t)max_length_*1024; name_idx = 0; filename = file; @@ -92,7 +90,6 @@ void logger_file::run_thread() { if(!is_running) return; // Thread done. Messages in buffer will be handled in flush. } str_ptr s = buffer.front(); - pthread_cond_signal(¬_full); int n = 0; if(logfile) n = fprintf(logfile, "%s", s->c_str());