[DiscordArchive] how many threads can update _cacheState ? 1 or more ?
[DiscordArchive] how many threads can update _cacheState ? 1 or more ?
Archived author: jackpoz • Posted: 2024-07-17T20:02:46.390000+00:00
Original source
how many threads can update _cacheState ? 1 or more ?
Archived author: Foe • Posted: 2024-07-17T20:02:51.992000+00:00
Original source
1
Archived author: jackpoz • Posted: 2024-07-17T20:03:03.108000+00:00
Original source
with multi-threading read and write and single and multiple matter a lot
Archived author: Foe • Posted: 2024-07-17T20:03:06.865000+00:00
Original source
the other threads (map update threads) only reads from it
Archived author: jackpoz • Posted: 2024-07-17T20:03:12.628000+00:00
Original source
then it's fine
![[Image: image.png?ex=690c5655&is=690b04d5&hm=93a...0254bb1e1&]](https://cdn.discordapp.com/attachments/870722120458600528/1263224595662508072/image.png?ex=690c5655&is=690b04d5&hm=93a56a141ccc8fe5dfa7ec2a9d2f4cedfda0af64dbd02c6431a72220254bb1e1&)
Archived author: jackpoz • Posted: 2024-07-17T20:03:33.256000+00:00
Original source
otherwise this would not work
![[Image: image.png?ex=690c5655&is=690b04d5&hm=93a...0254bb1e1&]](https://cdn.discordapp.com/attachments/870722120458600528/1263224595662508072/image.png?ex=690c5655&is=690b04d5&hm=93a56a141ccc8fe5dfa7ec2a9d2f4cedfda0af64dbd02c6431a72220254bb1e1&)
Archived author: jackpoz • Posted: 2024-07-17T20:03:45.248000+00:00
Original source
that works only with 1 thread writing
Archived author: Foe • Posted: 2024-07-17T20:03:59.258000+00:00
Original source
Yeah, only the world update thread will write to that
Archived author: Foe • Posted: 2024-07-17T20:04:04.863000+00:00
Original source
the map update threads simply read
Archived author: jackpoz • Posted: 2024-07-17T20:05:34.056000+00:00
Original source
std::thread(&ElunaLoader::LoadScripts, this).detach();