Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] why is there a thread handling mail expirations?

[DiscordArchive] why is there a thread handling mail expirations?

[DiscordArchive] why is there a thread handling mail expirations?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
11-11-2024, 10:58 AM
#1
Archived author: Takenbacon • Posted: 2024-11-11T10:58:21.801000+00:00
Original source

why is there a thread handling mail expirations?
rektbyfaith
11-11-2024, 10:58 AM #1

Archived author: Takenbacon • Posted: 2024-11-11T10:58:21.801000+00:00
Original source

why is there a thread handling mail expirations?

rektbyfaith
Administrator
0
11-11-2024, 10:58 AM
#2
Archived author: andriuspel • Posted: 2024-11-11T10:58:26.196000+00:00
Original source

shared_ptr has atomic security model, where memory is deleted only when last reference is deleted
rektbyfaith
11-11-2024, 10:58 AM #2

Archived author: andriuspel • Posted: 2024-11-11T10:58:26.196000+00:00
Original source

shared_ptr has atomic security model, where memory is deleted only when last reference is deleted

rektbyfaith
Administrator
0
11-11-2024, 10:59 AM
#3
Archived author: walkline • Posted: 2024-11-11T10:59:06.944000+00:00
Original source

That would make sense if we had several threads interacting with mail (like mail expiration thread). But my assumption is that all mail-related logic is handled only in the world thread, so there are no concurrent interactions — no issues.
rektbyfaith
11-11-2024, 10:59 AM #3

Archived author: walkline • Posted: 2024-11-11T10:59:06.944000+00:00
Original source

That would make sense if we had several threads interacting with mail (like mail expiration thread). But my assumption is that all mail-related logic is handled only in the world thread, so there are no concurrent interactions — no issues.

rektbyfaith
Administrator
0
11-11-2024, 11:04 AM
#4
Archived author: andriuspel • Posted: 2024-11-11T11:04:12.100000+00:00
Original source

but lets say, item is removed by other threads or processes, lets say you make handling item destruction case, you go to vendor, you trigger item repair, such item may has limited timed duration, and item gets removed during repair/enchant process
rektbyfaith
11-11-2024, 11:04 AM #4

Archived author: andriuspel • Posted: 2024-11-11T11:04:12.100000+00:00
Original source

but lets say, item is removed by other threads or processes, lets say you make handling item destruction case, you go to vendor, you trigger item repair, such item may has limited timed duration, and item gets removed during repair/enchant process

rektbyfaith
Administrator
0
11-11-2024, 11:04 AM
#5
Archived author: andriuspel • Posted: 2024-11-11T11:04:55.546000+00:00
Original source

and before applying repair/enchant tasks, item could be gone
rektbyfaith
11-11-2024, 11:04 AM #5

Archived author: andriuspel • Posted: 2024-11-11T11:04:55.546000+00:00
Original source

and before applying repair/enchant tasks, item could be gone

rektbyfaith
Administrator
0
11-11-2024, 11:05 AM
#6
Archived author: andriuspel • Posted: 2024-11-11T11:05:04.481000+00:00
Original source

while task gets triggered
rektbyfaith
11-11-2024, 11:05 AM #6

Archived author: andriuspel • Posted: 2024-11-11T11:05:04.481000+00:00
Original source

while task gets triggered

rektbyfaith
Administrator
0
11-11-2024, 11:07 AM
#7
Archived author: andriuspel • Posted: 2024-11-11T11:07:00.706000+00:00
Original source

or lets say, what if item is deleted outside of world thread
rektbyfaith
11-11-2024, 11:07 AM #7

Archived author: andriuspel • Posted: 2024-11-11T11:07:00.706000+00:00
Original source

or lets say, what if item is deleted outside of world thread

rektbyfaith
Administrator
0
11-11-2024, 11:07 AM
#8
Archived author: andriuspel • Posted: 2024-11-11T11:07:35.395000+00:00
Original source

lets say, direct call from spell effects
rektbyfaith
11-11-2024, 11:07 AM #8

Archived author: andriuspel • Posted: 2024-11-11T11:07:35.395000+00:00
Original source

lets say, direct call from spell effects

rektbyfaith
Administrator
0
11-11-2024, 11:17 AM
#9
Archived author: walkline • Posted: 2024-11-11T11:17:27.317000+00:00
Original source

I think you are overestimating concurrency in AC. There are not that many parallel things that can happen. I believe a situation like the one you described is still handled in the same thread and isn't concurrent.
rektbyfaith
11-11-2024, 11:17 AM #9

Archived author: walkline • Posted: 2024-11-11T11:17:27.317000+00:00
Original source

I think you are overestimating concurrency in AC. There are not that many parallel things that can happen. I believe a situation like the one you described is still handled in the same thread and isn't concurrent.

rektbyfaith
Administrator
0
11-11-2024, 11:19 AM
#10
Archived author: andriuspel • Posted: 2024-11-11T11:19:24.048000+00:00
Original source

this pretty much mainly can happen in ahbot, if you set 1k+ items and very short mail expiration time
rektbyfaith
11-11-2024, 11:19 AM #10

Archived author: andriuspel • Posted: 2024-11-11T11:19:24.048000+00:00
Original source

this pretty much mainly can happen in ahbot, if you set 1k+ items and very short mail expiration time

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