Hello,
i have the next problem:
- I use two threads, because i would like to display two videos.
- I would like to synchronize these two videos with one semaphore.
- In the code of the threads i have one connect (connect the timer and the funcion xx to update the label) to display the frame and one timer to update with this refresh.
- In the function xx i have one sem.acquire() to block this frame until the other is available, and in the other function another sem.acquire if the other comes first. And one sem.release() in these functions to release the semaphore.
My problem is that my application is freeze, and when the semaphore is blocked, then it doesn't receive the sem.release. I don't know what's happened...
Thanks!
Bookmarks