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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user