<html><body><div>Hello,</div><div><br></div><div>I've encountered a few (short) functions where I think switching threads at any point should not break anything, but I'm not 100% sure, so I disabled interrupts in this code. Is this the right approach? What are the best practices with this kind of "defensive" synchronization?</div><br><div>Best regards,</div><div>Jakub Pelc<br></div></body></html>