Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] I'm wondering if item creation is thread safe. We have this ObjectGuidGenerator, which is not thread

[DiscordArchive] I'm wondering if item creation is thread safe. We have this ObjectGuidGenerator, which is not thread

[DiscordArchive] I'm wondering if item creation is thread safe. We have this ObjectGuidGenerator, which is not thread

rektbyfaith
Administrator
0
01-29-2025, 02:41 PM
#1
Archived author: walkline • Posted: 2025-01-29T14:41:30.237000+00:00
Original source

I'm wondering if item creation is thread safe. We have this ObjectGuidGenerator, which is not thread safe (_nextGuid is not atomic), so I assume item creation should happen in the world thread. But I assume that a spell effect creating an item would be executed in the map thread, which would result in a race condition, right?
rektbyfaith
01-29-2025, 02:41 PM #1

Archived author: walkline • Posted: 2025-01-29T14:41:30.237000+00:00
Original source

I'm wondering if item creation is thread safe. We have this ObjectGuidGenerator, which is not thread safe (_nextGuid is not atomic), so I assume item creation should happen in the world thread. But I assume that a spell effect creating an item would be executed in the map thread, which would result in a race condition, right?

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