3 ms·
Well, the idea is that I would have to store a variable and access it without races, so I would use an external storage library. This is pretty cool though, I'v
by Demiurge 9y ago
Well, the idea is that I would have to store a variable and access it without races, so I would use an external storage library. This is pretty cool though, I've never used python threading for state, thanks a lot!
- filmor 9y agoThis doesn't use threading, just a thread-local variable (i.e. a variable that points to different memory locations for each thread) to make the whole thing threadsafe.