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:
parent
985bc92bf7
commit
138bc244f9
@ -2,6 +2,7 @@ package console
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"sync"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -15,6 +16,8 @@ const (
|
|||||||
// allocator, each console will use its own framebuffer while the active console
|
// allocator, each console will use its own framebuffer while the active console
|
||||||
// will periodically sync its internal buffer with the physical screen buffer.
|
// will periodically sync its internal buffer with the physical screen buffer.
|
||||||
type Vga struct {
|
type Vga struct {
|
||||||
|
sync.Mutex
|
||||||
|
|
||||||
width uint16
|
width uint16
|
||||||
height uint16
|
height uint16
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user