Skip to content

Commit

Permalink
TextTerminal uses an InterruptLock now.
Browse files Browse the repository at this point in the history
This allows us to use the logger before the scheduler has been initialized,
and from within the scheduler itself, and from within interrupt context.
  • Loading branch information
foxostro committed Mar 18, 2019
1 parent e794ffe commit b4b2216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/include/common/text_terminal.hpp
Expand Up @@ -6,7 +6,7 @@
#include <common/ring_buffer.hpp>
#include <common/text_line.hpp>
#include <common/vec2.hpp>
#include <common/mutex.hpp>
#include <common/interrupt_lock.hpp>
#include <common/lock_guard.hpp>

// A text terminal displays lines of text on a text console display.
Expand Down Expand Up @@ -128,7 +128,7 @@ class TextTerminal : public TextOutputStream {
}

private:
Mutex lock_;
InterruptLock lock_;
UnlockedTextTerminal impl_;
};

Expand Down

0 comments on commit b4b2216

Please sign in to comment.