mirror of https://github.com/PentHertz/srsLTE.git
remove unused cond variable in logger
This commit is contained in:
parent
4deb251071
commit
87fd218c72
|
@ -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<str_ptr> buffer;
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue