Recommended practices for re-entrant code in C, C++
I was going through a re-entrancy guide on recommended practices when writing re-entrant code. What other references and resources cover this topic? What lint-like tools can be used to check for these issues? The guide is sufficient. My personal rule of thumbs are only 2 for re-reentering code: take only pass by value parameters, used only value passed in as parameters in the function. if I need to use any global parameters or pointer (for performance or storage sake), use a mutex or semaphore to control access to it. Do use local variables. Don't use static locals or global variables, even