log: remove unused lock

m_lock is initialized and destroyed, but never used.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2013-07-20 18:41:39 -07:00
parent 2c5b68c383
commit 88f4a962e1
2 changed files with 0 additions and 5 deletions

View File

@ -42,9 +42,6 @@ Log::Log(SubsystemMap *s)
{
int ret;
ret = pthread_spin_init(&m_lock, PTHREAD_PROCESS_SHARED);
assert(ret == 0);
ret = pthread_mutex_init(&m_flush_mutex, NULL);
assert(ret == 0);
@ -73,7 +70,6 @@ Log::~Log()
if (m_fd >= 0)
TEMP_FAILURE_RETRY(::close(m_fd));
pthread_spin_destroy(&m_lock);
pthread_mutex_destroy(&m_queue_mutex);
pthread_mutex_destroy(&m_flush_mutex);
pthread_cond_destroy(&m_cond_loggers);

View File

@ -21,7 +21,6 @@ class Log : private Thread
SubsystemMap *m_subs;
pthread_spinlock_t m_lock;
pthread_mutex_t m_queue_mutex;
pthread_mutex_t m_flush_mutex;
pthread_cond_t m_cond_loggers;