Quantcast
Channel: Ensure no threads are waiting on a Critical Section before destroying it - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Roman Ryltsov for Ensure no threads are waiting on a Critical...

You are responsible to make sure that CS is not in use any longer before destroying it. Let us say that no other thread is currently trying to enter, but there is a chance that it is going to attempt...

View Article



Ensure no threads are waiting on a Critical Section before destroying it

I have an issue in my use of critical sections. My app has a large number of threads, say 60, which all need access to a global resource. I therefore protect that resource with a critical section. This...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images