5 ms·
Multithreading usually means that threads share the address space and so can (inadvertently) stomp on each other's "errno". (Hence making it Thread-Local Storag
by lomnakkus 10y ago
Multithreading usually means that threads share the address space and so can (inadvertently) stomp on each other's "errno". (Hence making it Thread-Local Storage to solve that issue. Doesn't solve the reentrancy issue, though.)
If multithreading were pervasive nobody in their right mind would choose to use a global variable for error status codes.
- bogomipz 10y agoAh yes that makes sense. Thanks!