[DiscordArchive] You mean single queue for updates and requests?
[DiscordArchive] You mean single queue for updates and requests?
Archived author: walkline • Posted: 2024-11-19T14:47:34.723000+00:00
Original source
You mean single queue for updates and requests?
Archived author: Takenbacon • Posted: 2024-11-19T14:47:42.747000+00:00
Original source
Yeah
Archived author: walkline • Posted: 2024-11-19T14:48:07.146000+00:00
Original source
Yeah, it should work
Archived author: Takenbacon • Posted: 2024-11-19T14:58:10.615000+00:00
Original source
Now it's bugging me I can't remember my thought process on that. I originally wrote it without the list there and changed my mind for some reason lol
Archived author: Takenbacon • Posted: 2024-11-19T14:59:57.795000+00:00
Original source
Doesn't need to notify. It modifies the shared_ptr so it's directly modifying what the threads are accessing as well. Primitive type so no concerns about thread safety (but marking it as atomic would prevent certain analyzers from getting pissed off)
Archived author: walkline • Posted: 2024-11-19T15:28:16.054000+00:00
Original source
But it can still lead to a data race. It's not that critical, I think in the worst-case scenario, it would just send to the client an invalid bid and bidder, but it's not the end of the world.
Archived author: Takenbacon • Posted: 2024-11-19T15:42:03.449000+00:00
Original source
Nah, not in C with a primitive type using basic operations. It's bad to do but wouldn't lead to anything disastrous by any means.
Archived author: Takenbacon • Posted: 2024-11-19T15:43:06.300000+00:00
Original source
I did mean to mark them as atomic regardless I just forgot to, but if I do end up removing that list then it's unnecessary anyways
Archived author: Takenbacon • Posted: 2024-11-19T15:44:40.382000+00:00
Original source
C# is pretty bad about doing that whole "half written" invalid data even on primitives
Archived author: walkline • Posted: 2024-11-19T15:50:08.659000+00:00
Original source
In this case, you have this SearchableAuctionEntriesMap in AuctionHouseSearcher so you can directly modify bid related data?