[DiscordArchive] btw, how would you do an `AsyncObject::wait_until_loaded()` function that doesn't block the rest,
[DiscordArchive] btw, how would you do an `AsyncObject::wait_until_loaded()` function that doesn't block the rest,
Archived author: Adspartan • Posted: 2020-02-04T18:23:36.675000+00:00
Original source
btw, how would you do an `AsyncObject::wait_until_loaded()` function that doesn't block the rest, a condition variable that just check `AsyncObject::finished` (that I made atomic) ?
Archived author: Adspartan • Posted: 2020-02-04T18:25:36.919000+00:00
Original source
because right now my issue is that when reloading I get into a deadlock when ensuring the tile is loaded and I think the best way to solve it would be to just wait a bit without blocking the async loader
Archived author: Adspartan • Posted: 2020-02-04T18:31:36.312000+00:00
Original source
or just a simple loop with a sleep, that'd be a lot simpler but idk if you want that
Archived author: Adspartan • Posted: 2020-02-04T18:33:36.343000+00:00
Original source
meh, I'll go with the condition variable, I think I'm making it more complex that it should