more code cleanup

This commit is contained in:
gabi
2014-10-14 08:00:39 +03:00
parent beca913851
commit 41db99556a
10 changed files with 103 additions and 113 deletions

View File

@@ -39,7 +39,7 @@ protected:
void _thread_loop();
private:
c11log::logger::sinks_vector_t _sinks;
std::vector<std::shared_ptr<sink>> _sinks;
std::atomic<bool> _active;
q_type _q;
std::thread _back_thread;

View File

@@ -1,6 +1,8 @@
#pragma once
#include <mutex>
#include "base_sink.h"
#include "../details/null_mutex.h"
namespace c11log {
namespace sinks {
@@ -13,6 +15,9 @@ protected:
{}
};
typedef null_sink<details::null_mutex> null_sink_st;
typedef null_sink<std::mutex> null_sink_mt;
}
}