Skip to content

Commit

Permalink
Added read lock in SetCursorVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline75489 committed Oct 12, 2019
1 parent abf3ee5 commit 7b1a9e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cascadia/TerminalCore/Terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ void Terminal::_InitializeColorTable()
// - isVisible: whether the cursor should be visible
void Terminal::SetCursorVisible(const bool isVisible) noexcept
{
auto lock = LockForReading();

auto& cursor = _buffer->GetCursor();
cursor.SetIsVisible(isVisible);
}
Expand Down

0 comments on commit 7b1a9e1

Please sign in to comment.