I am porting a multi threaded application from Solaris to QNX6.2.1.
When I was initializing mutex, using pthread_mutex_init(), it returned errorcode saying the mutex is yet not destroyed.
On searching I found that I had freed the memory of a mutex without destroying it.
Now the thing is this didnt cause any problems on Solaris. Which means that in QNX, the memory that was freed for the previous mutex is again allocated to a new mutex.
Why does this happen? Is this because of different type of memory management technique?
Obviously heap memory management in QNX should be different from that in Solaris.
Can someone throw light on this?
Thanks and regards,