force to use inherited mutex

pull/302/head
Alexander Pitzer 9 years ago
parent 3b51a20772
commit 7a0f371931

@ -66,14 +66,13 @@ public:
// change the color for the given level // change the color for the given level
void set_color(level::level_enum level, WORD color) void set_color(level::level_enum level, WORD color)
{ {
std::lock_guard<Mutex> lock(_mutex); std::lock_guard<Mutex> lock(base_sink<Mutex>::_mutex);
colors_[level] = color; colors_[level] = color;
} }
private: private:
HANDLE out_handle_; HANDLE out_handle_;
std::map<level::level_enum, WORD> colors_; std::map<level::level_enum, WORD> colors_;
Mutex _mutex;
// set color and return the orig console attributes (for resetting later) // set color and return the orig console attributes (for resetting later)
WORD set_console_attribs(WORD attribs) WORD set_console_attribs(WORD attribs)

Loading…
Cancel
Save