I have a function that, when called, cannot be interrupted by ANYTHING. After much frustration, I figured out that the reason it was having problems is that other time slices were interrupting it (I found I kept loosing 16ms here and there, but at different points and eventually isolated it to this).
How do I make it so that, from when the function starts to when the function ends, NOTHING interrupts it. In case it matters, this function calls other functions and communicates with a database.
I need a solution ASAP, so any help would be greatly appreciated.