committed by
Norman Feske
parent
3d634df34d
commit
973fbc98be
@@ -185,15 +185,15 @@ class Log_window
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Canvas_base &_canvas;
|
Canvas_base &_canvas;
|
||||||
Font const &_font;
|
Font const &_font;
|
||||||
Log_entry _entries[LOG_H]; /* log entries */
|
Log_entry _entries[LOG_H]; /* log entries */
|
||||||
int _dst_entry = 0; /* destination entry for next write */
|
int _dst_entry = 0; /* destination entry for next write */
|
||||||
int _view_pos = 0; /* current view port on the entry array */
|
int _view_pos = 0; /* current view port on the entry array */
|
||||||
bool _scroll = false; /* scroll mode (when text hits bottom) */
|
bool _scroll = false; /* scroll mode (when text hits bottom) */
|
||||||
char _attr[LOG_W]; /* character attribute buffer */
|
char _attr[LOG_W]; /* character attribute buffer */
|
||||||
bool _dirty = true; /* schedules the log window for a redraw */
|
bool _dirty = true; /* schedules the log window for a redraw */
|
||||||
Genode::Lock _dirty_lock { };
|
Genode::Mutex _dirty_mutex { };
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -226,7 +226,7 @@ class Log_window
|
|||||||
_scroll = true;
|
_scroll = true;
|
||||||
|
|
||||||
/* schedule log window for redraw */
|
/* schedule log window for redraw */
|
||||||
Genode::Lock::Guard lock_guard(_dirty_lock);
|
Genode::Mutex::Guard guard(_dirty_mutex);
|
||||||
_dirty |= 1;
|
_dirty |= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,7 +238,7 @@ class Log_window
|
|||||||
bool draw()
|
bool draw()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
Genode::Lock::Guard lock_guard(_dirty_lock);
|
Genode::Mutex::Guard guard(_dirty_mutex);
|
||||||
if (!_dirty) return false;
|
if (!_dirty) return false;
|
||||||
_dirty = false;
|
_dirty = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user