Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting lid closed event Pin
David Crow2-Jun-04 10:33
David Crow2-Jun-04 10:33 
Questionmany CMutex objects: good idea? Pin
berndg2-Jun-04 8:52
berndg2-Jun-04 8:52 
AnswerRe: many CMutex objects: good idea? Pin
peterchen2-Jun-04 9:03
peterchen2-Jun-04 9:03 
GeneralRe: many CMutex objects: good idea? Pin
berndg2-Jun-04 9:12
berndg2-Jun-04 9:12 
GeneralRe: many CMutex objects: good idea? Pin
Daniel Turini2-Jun-04 10:17
Daniel Turini2-Jun-04 10:17 
GeneralRe: many CMutex objects: good idea? Pin
Alexander M.,2-Jun-04 12:54
Alexander M.,2-Jun-04 12:54 
GeneralRe: many CMutex objects: good idea? Pin
Tim Smith2-Jun-04 15:56
Tim Smith2-Jun-04 15:56 
AnswerRe: many CMutex objects: good idea? Pin
Andy Brummer2-Jun-04 10:21
sitebuilderAndy Brummer2-Jun-04 10:21 
If you don't need the overhead of a mutex, don't use it. Better yet use one of the libraries that provide a lock interface to both objects. That way you can change them easily at a later date.
If it is at all possible structure your objects so you can use copies of data instead of sharing, or other approaches to avoid locking as much as possible. Each mutex or critical section you add increases the risk of deadlock and they are very difficult to reproduce and troubleshoot.
Also, check out the Objects\Mutexes performance counter object, it will show you a count of all active mutexes. For example I currently have 551 total mutexes on my system.




If you don't kill me you will only make me stronger

That and a cup of coffee will get you 2 cups of coffee
AnswerRe: many CMutex objects: good idea? Pin
Alexander M.,2-Jun-04 12:55
Alexander M.,2-Jun-04 12:55 
AnswerRe: many CMutex objects: good idea? Pin
Tim Smith2-Jun-04 15:49
Tim Smith2-Jun-04 15:49 
GeneralRe: many CMutex objects: good idea? Pin
berndg2-Jun-04 20:03
berndg2-Jun-04 20:03 
GeneralGet time zone info for a network computer. Pin
LizardWiz2-Jun-04 8:40
LizardWiz2-Jun-04 8:40 
GeneralRe: Get time zone info for a network computer. Pin
David Crow2-Jun-04 9:27
David Crow2-Jun-04 9:27 
GeneralRe: Get time zone info for a network computer. Pin
LizardWiz2-Jun-04 11:22
LizardWiz2-Jun-04 11:22 
GeneralRe: Get time zone info for a network computer. Pin
David Crow3-Jun-04 2:53
David Crow3-Jun-04 2:53 
QuestionWhy is my overlapped WriteFile blocking? Pin
JT Anderson2-Jun-04 8:28
JT Anderson2-Jun-04 8:28 
Generalstrng to CString Pin
kfaday2-Jun-04 8:00
kfaday2-Jun-04 8:00 
GeneralRe: strng to CString Pin
David Crow2-Jun-04 8:04
David Crow2-Jun-04 8:04 
GeneralRe: strng to CString Pin
kfaday2-Jun-04 8:29
kfaday2-Jun-04 8:29 
Questionhow to create a pop up menu Pin
kfaday2-Jun-04 7:10
kfaday2-Jun-04 7:10 
AnswerRe: how to create a pop up menu Pin
David Crow2-Jun-04 7:33
David Crow2-Jun-04 7:33 
GeneralRe: how to create a pop up menu Pin
kfaday2-Jun-04 8:51
kfaday2-Jun-04 8:51 
GeneralRe: how to create a pop up menu Pin
David Crow2-Jun-04 9:31
David Crow2-Jun-04 9:31 
GeneralRe: how to create a pop up menu Pin
kfaday2-Jun-04 16:51
kfaday2-Jun-04 16:51 
GeneralRe: how to create a pop up menu Pin
David Crow3-Jun-04 2:23
David Crow3-Jun-04 2:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.