mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
loop: Use RLock
This commit is contained in:
parent
53e1f90146
commit
57a32464dc
@ -54,8 +54,8 @@ func (c *runContext) startRunning() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *runContext) isRunning() bool {
|
func (c *runContext) isRunning() bool {
|
||||||
c.m.Lock()
|
c.m.RLock()
|
||||||
defer c.m.Unlock()
|
defer c.m.RUnlock()
|
||||||
return c.running
|
return c.running
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user