I am porting to mqx some existing code that requires recursive mutexes. I.e a mutex that can be locked more than once from one thread. As I had noticed previously that mutexes are stated in the mqx docs to be Posix compliant I was anticipating that mqx mutexes were recursive.
I have just tested this and proved that the mqx mutex is in fact not recursive. So is the documentation wrong, or is Posix loosely defined and doesnt state if recursion is supported or not ?
I wonder if it is possible to make a recursive mutex from a basic mqx mutex with an additional counter ? I am probably overlooking a lot of subtleties here ?
Thanks for any thoughts