[DiscordArchive] how many threads can update _cacheState ? 1 or more ?
[DiscordArchive] how many threads can update _cacheState ? 1 or more ?
Archived author: Foe • Posted: 2024-07-17T20:33:32.916000+00:00
Original source
Possibly store the thread and wait for a stop signal
Archived author: jackpoz • Posted: 2024-07-17T20:35:08.992000+00:00
Original source
you can just Sleep for 30 seconds and shutdown
Archived author: jackpoz • Posted: 2024-07-17T20:35:16.104000+00:00
Original source
that should be enough to crash
Archived author: Foe • Posted: 2024-07-17T20:35:36.867000+00:00
Original source
yeah, that's probably the easiest way to create it
Archived author: Foe • Posted: 2024-07-17T20:36:04.500000+00:00
Original source
will test through VS too though, sounds like a handy function
Archived author: jackpoz • Posted: 2024-07-17T20:49:55.847000+00:00
Original source
at least you didn't have to learn this when std::atomic didn't exist yet
Archived author: Foe • Posted: 2024-07-17T20:51:30.269000+00:00
Original source
It's still black magic voodoo, I'm too spoiled with Lua coroutines
Archived author: Tea • Posted: 2024-07-17T20:56:02.312000+00:00
Original source
the ones that are singlethreaded like javascript? (unless you spawn threads in c)
Archived author: jackpoz • Posted: 2024-07-17T21:00:01.041000+00:00
Original source
C# is quite easy since .NET 4 and Task
Archived author: jackpoz • Posted: 2024-07-17T21:00:31.522000+00:00
Original source
you add your stuff to a Task and check when it's completed