1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: make [live] fn unlock its mutex on early return

This commit is contained in:
Delyan Angelov
2020-01-14 19:58:46 +02:00
committed by Alexander Medvednikov
parent 26374971ab
commit 4838dda59a
6 changed files with 64 additions and 19 deletions

View File

@ -30,7 +30,10 @@ fn main() {
})
}
go update() // update the scene in the background in case the window isn't focused
for {
for {
if ctx.gg.window.should_close() {
break
}
gg.clear(gx.White)
ctx.draw()
ctx.gg.render()