|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
||||
|
||||
|
CSingleLock issue
C++ & MFC
I'm having an issue where if one thread locks a CMutex object using a CSingleLock and then another thread uses a CSingleLock to lock the same CMutex object, everything freezes up. From what I've read of CSingleLock documentation, if a CSingleLock attempts to lock a CMutex that has already been locked, it will wait for it to be signaled (unlocked) and then lock it and let the code go about it's business. Here, when the second lock goes to lock the already locked CMutex object, it just freezes up the application completely... Last edited by AndyMNE : May 8th, 2008 at 03:13 PM. |
|
#2
|
||||
|
||||
|
It freezes because it's waiting for your other thread to release the mutex. The other thread is likely waiting for something this thread does. Deadlock.
__________________
Primary Forums: .Net Development, MS-SQL, C Programming VB.Net: It's not your father's Visual Basic. [Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers] |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > CSingleLock issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|