Using multiple threads in reading logs via rule message example

This commit is contained in:
Felipe Zimmerle
2017-06-03 16:13:48 -03:00
parent 8fbb9e8128
commit 2a5085255e
3 changed files with 111 additions and 62 deletions

View File

@@ -38,10 +38,7 @@ namespace backend {
InMemoryPerProcess::InMemoryPerProcess() {
this->reserve(1000);
if (pthread_mutex_init(&m_lock, NULL) != 0)
{
printf("\n mutex init failed\n");
}
pthread_mutex_init(&m_lock, NULL);
}
InMemoryPerProcess::~InMemoryPerProcess() {