ReleaseMutex
-
i have defined a global handle to MUTEX and creating it in one funtion and releasing in the other funtion, but it won't allow me to do so. what to do for it. i need to own it. how it is possible
-
i have defined a global handle to MUTEX and creating it in one funtion and releasing in the other funtion, but it won't allow me to do so. what to do for it. i need to own it. how it is possible
You can't have one thread aquire the mutex and another release. If you are trying to do this in the same thread, then you have other problems. Tim Smith "Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution." Hoare - 1980 ACM Turing Award Lecture