[DiscordArchive] Yeah, you are right. So, you think it (overall idea) might work, don't you?
[DiscordArchive] Yeah, you are right. So, you think it (overall idea) might work, don't you?
Archived author: Tea • Posted: 2024-04-02T11:31:01.949000+00:00
Original source
that container kind of sucks with allocation patterns
Archived author: jackpoz • Posted: 2024-04-02T11:31:20.827000+00:00
Original source
in this case a multi-producer single-consumer lock-free container based on std::atomic allows to avoid using locks
Archived author: Tea • Posted: 2024-04-02T11:31:44.183000+00:00
Original source
and it only sucks because i didnt know back then if i could do a move/swap on a value larger than pointer and still be safe
Archived author: Tea • Posted: 2024-04-02T11:31:47.402000+00:00
Original source
and i still dont know
Archived author: Tea • Posted: 2024-04-02T11:33:51.585000+00:00
Original source
ah no, you linked the good one
Archived author: Tea • Posted: 2024-04-02T11:34:04.453000+00:00
Original source
MPSCQueueNonIntrusive is the sucky one
Archived author: jackpoz • Posted: 2024-04-02T11:34:37.542000+00:00
Original source
I didn't know the old one was still there, but I remember you updated it
Archived author: jackpoz • Posted: 2024-04-02T11:34:49.124000+00:00
Original source
interestingly enough, std::atomic can use mutexes https://en.cppreference.com/w/cpp/atomic..._lock_free
[Embed: cpp/atomic/atomic/is lock free]
https://en.cppreference.com/w/cpp/atomic..._lock_free