shiny/example/fluid: build fix: s/EventQueue/EventDeque/

Change-Id: I8ee0d73b63fc0441790236ca970593e6dc4e367f
Reviewed-on: https://go-review.googlesource.com/24631
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Nigel Tao 2016-06-30 11:50:49 +10:00
Родитель d55d831f1e
Коммит 06a3f3d998
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -18,7 +18,7 @@ type Deque struct {
front []interface{} // LIFO.
}
// NextEvent implements the screen.EventQueue interface.
// NextEvent implements the screen.EventDeque interface.
func (q *Deque) NextEvent() interface{} {
q.mu.Lock()
defer q.mu.Unlock()
@ -43,7 +43,7 @@ func (q *Deque) NextEvent() interface{} {
}
}
// Send implements the screen.EventQueue interface.
// Send implements the screen.EventDeque interface.
func (q *Deque) Send(event interface{}) {
q.mu.Lock()
defer q.mu.Unlock()
@ -55,7 +55,7 @@ func (q *Deque) Send(event interface{}) {
q.cond.Signal()
}
// SendFirst implements the screen.EventQueue interface.
// SendFirst implements the screen.EventDeque interface.
func (q *Deque) SendFirst(event interface{}) {
q.mu.Lock()
defer q.mu.Unlock()

Просмотреть файл

@ -171,7 +171,7 @@ var shared = struct {
pix: make([]byte, 4*N*N),
}
func simulate(q screen.EventQueue) {
func simulate(q screen.EventDeque) {
var (
dens, densPrev array
u, uPrev array