I have a mutex problem between two threads (one thread in the main function and the other in a thread function). I have a global mutex who create in the thread function (CreateMutex) because I want that this thread owns the mutex first. When mutex is released the main function get it and works. The problem is that the main function thread is waiting for the thread forever although the other thread have already released.
have you any ideas?