Forums WoW Modding Support Archives WoWModding Support Archives [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,

[DiscordArchive] btw, how would you do an `AsyncObject::wait_until_loaded()` function that doesn't block the rest,

rektbyfaith
Administrator
0
02-04-2020, 06:23 PM
#1
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) ?
rektbyfaith
02-04-2020, 06:23 PM #1

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) ?

rektbyfaith
Administrator
0
02-04-2020, 06:25 PM
#2
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
rektbyfaith
02-04-2020, 06:25 PM #2

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

rektbyfaith
Administrator
0
02-04-2020, 06:31 PM
#3
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
rektbyfaith
02-04-2020, 06:31 PM #3

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

rektbyfaith
Administrator
0
02-04-2020, 06:33 PM
#4
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
rektbyfaith
02-04-2020, 06:33 PM #4

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)