AnsweredAssumed Answered

MQX Mutex question

Question asked by Geoff Westwood on Mar 17, 2010
Latest reply on Mar 14, 2016 by Roger Chaplin



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