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

Remove all locking code

Since the Go runtime is not yet setup there is no support for
spinlocking if a lock cannot be acquired. This makes the locking code
useless for now.
This commit is contained in:
Achilleas Anagnostopoulos
2017-03-30 08:06:43 +01:00
parent 7dac10a23b
commit 50da8ab106
4 changed files with 12 additions and 29 deletions

View File

@@ -1,7 +1,5 @@
package console
import "sync"
// Attr defines a color attribute.
type Attr uint16
@@ -36,8 +34,6 @@ const (
// The Console interface is implemented by objects that can function as physical consoles.
type Console interface {
sync.Locker
// Dimensions returns the width and height of the console in characters.
Dimensions() (uint16, uint16)

View File

@@ -2,7 +2,6 @@ package console
import (
"reflect"
"sync"
"unsafe"
)
@@ -16,8 +15,6 @@ 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 Ega struct {
sync.Mutex
width uint16
height uint16