mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ui: Refactoring
This commit is contained in:
parent
60a504543f
commit
bae6d62067
@ -75,11 +75,9 @@ var (
|
|||||||
func Loop() {
|
func Loop() {
|
||||||
<-workerCreated
|
<-workerCreated
|
||||||
for {
|
for {
|
||||||
select {
|
<-worker.WorkAvailable()
|
||||||
case <-worker.WorkAvailable():
|
|
||||||
worker.DoWork()
|
worker.DoWork()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Context) init() {
|
func (c *Context) init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user