Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] this one sounds evil, why do you need it?

[DiscordArchive] this one sounds evil, why do you need it?

[DiscordArchive] this one sounds evil, why do you need it?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
07-09-2025, 04:40 PM
#1
Archived author: Tea • Posted: 2025-07-09T16:40:22.394000+00:00
Original source

this one sounds evil, why do you need it?
rektbyfaith
07-09-2025, 04:40 PM #1

Archived author: Tea • Posted: 2025-07-09T16:40:22.394000+00:00
Original source

this one sounds evil, why do you need it?

rektbyfaith
Administrator
0
07-09-2025, 04:43 PM
#2
Archived author: Foe • Posted: 2025-07-09T16:43:35.410000+00:00
Original source

we flag the Lua state for reloading, but we don't want to actually reload the state until all scheduled async queries have been handled, so we dont try to call back to a callback function that no longer exists
rektbyfaith
07-09-2025, 04:43 PM #2

Archived author: Foe • Posted: 2025-07-09T16:43:35.410000+00:00
Original source

we flag the Lua state for reloading, but we don't want to actually reload the state until all scheduled async queries have been handled, so we dont try to call back to a callback function that no longer exists

rektbyfaith
Administrator
0
07-09-2025, 04:43 PM
#3
Archived author: Foe • Posted: 2025-07-09T16:43:52.896000+00:00
Original source

so as long as there's a pending callback we just delay the reload
rektbyfaith
07-09-2025, 04:43 PM #3

Archived author: Foe • Posted: 2025-07-09T16:43:52.896000+00:00
Original source

so as long as there's a pending callback we just delay the reload

rektbyfaith
Administrator
0
07-09-2025, 04:46 PM
#4
Archived author: Tea • Posted: 2025-07-09T16:46:46.935000+00:00
Original source

so this means a script can block a reload forever if it keeps scheduling?
rektbyfaith
07-09-2025, 04:46 PM #4

Archived author: Tea • Posted: 2025-07-09T16:46:46.935000+00:00
Original source

so this means a script can block a reload forever if it keeps scheduling?

rektbyfaith
Administrator
0
07-09-2025, 04:49 PM
#5
Archived author: Foe • Posted: 2025-07-09T16:49:15.296000+00:00
Original source

I guess in theory if it scheduled a new async query on every update tick (or at least before the previously scheduled query has been resolved) then sure
rektbyfaith
07-09-2025, 04:49 PM #5

Archived author: Foe • Posted: 2025-07-09T16:49:15.296000+00:00
Original source

I guess in theory if it scheduled a new async query on every update tick (or at least before the previously scheduled query has been resolved) then sure

rektbyfaith
Administrator
0
07-09-2025, 04:49 PM
#6
Archived author: Tea • Posted: 2025-07-09T16:49:51.095000+00:00
Original source

like scheduling new async inside the async callback?
rektbyfaith
07-09-2025, 04:49 PM #6

Archived author: Tea • Posted: 2025-07-09T16:49:51.095000+00:00
Original source

like scheduling new async inside the async callback?

rektbyfaith
Administrator
0
07-09-2025, 04:49 PM
#7
Archived author: Foe • Posted: 2025-07-09T16:49:58.993000+00:00
Original source

Or if the callback function itself scheduled a new async query, then yeah
rektbyfaith
07-09-2025, 04:49 PM #7

Archived author: Foe • Posted: 2025-07-09T16:49:58.993000+00:00
Original source

Or if the callback function itself scheduled a new async query, then yeah

rektbyfaith
Administrator
0
07-09-2025, 04:51 PM
#8
Archived author: Tea • Posted: 2025-07-09T16:51:59.931000+00:00
Original source

would canceling them be a better option?
rektbyfaith
07-09-2025, 04:51 PM #8

Archived author: Tea • Posted: 2025-07-09T16:51:59.931000+00:00
Original source

would canceling them be a better option?

rektbyfaith
Administrator
0
07-09-2025, 04:53 PM
#9
Archived author: Foe • Posted: 2025-07-09T16:53:38.865000+00:00
Original source

I suppose either canceling them, or queueing the queries and only registering them at the end of the update loop *if* a reload is not scheduled, would both be ways to go about it
rektbyfaith
07-09-2025, 04:53 PM #9

Archived author: Foe • Posted: 2025-07-09T16:53:38.865000+00:00
Original source

I suppose either canceling them, or queueing the queries and only registering them at the end of the update loop *if* a reload is not scheduled, would both be ways to go about it

rektbyfaith
Administrator
0
07-09-2025, 04:54 PM
#10
Archived author: Foe • Posted: 2025-07-09T16:54:05.426000+00:00
Original source

Though I'd rather prefer cancelling than doing a queue
rektbyfaith
07-09-2025, 04:54 PM #10

Archived author: Foe • Posted: 2025-07-09T16:54:05.426000+00:00
Original source

Though I'd rather prefer cancelling than doing a queue

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)