4 ms·
And the probability of a given piece of C code that was written for a thread safe environment working when called from multiple threads at once is pretty low fo
by lanstin 3y ago
And the probability of a given piece of C code that was written for a thread safe environment working when called from multiple threads at once is pretty low for anything not 100% purely functional.
- CJefferson 3y agoHonestly, that’s not my biggest worry. My bigger worry is that now Python variables your extension is reading can be changed by another thread in real time. Before if you held the GIL, you knew nothing would change while you poked some Python datastructures.