3 ms·
How to ensure there are no other threads, confidently enough that one can turn thread safety off?
by jononor 3y ago
How to ensure there are no other threads, confidently enough that one can turn thread safety off?
- Kranar 3y agoFrom when I was reading the proposal, the idea is that until a C extension is loaded, you can assume that there are no other threads. Then when a module is loaded, by default you assume that it uses threads but modules that are thread free can indicate that using a flag, so if a module indicates it's thread free then you continue running without the thread safety features.