Is it safe to have one thread modify an atomic unit (e.g. a char) while the other only reads it? In an environment that permits this of course, like freertos.
I have been given some code that does just this, it uses a bool (defined as char) as a semaphore, I'm not sure why they didnt use a semaphore just for claritys sake, but then again I cant see the danger in using a char either really.