1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Add mutex to Vga console to satisfy console.Console

This commit is contained in:
Achilleas Anagnostopoulos 2017-03-26 21:41:53 +01:00 committed by GitHub
parent 985bc92bf7
commit 138bc244f9

View File

@ -2,6 +2,7 @@ package console
import (
"reflect"
"sync"
"unsafe"
)
@ -15,6 +16,8 @@ const (
// allocator, each console will use its own framebuffer while the active console
// will periodically sync its internal buffer with the physical screen buffer.
type Vga struct {
sync.Mutex
width uint16
height uint16