Click here to Skip to main content
15,941,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [OT] Re: Call DialogB from DialogA Pin
Iain Clarke, Warrior Programmer3-Apr-08 4:19
Iain Clarke, Warrior Programmer3-Apr-08 4:19 
GeneralRe: [OT] Re: Call DialogB from DialogA Pin
David Crow3-Apr-08 4:23
David Crow3-Apr-08 4:23 
GeneralSetupComm Pin
RomTibi2-Apr-08 8:04
RomTibi2-Apr-08 8:04 
GeneralRe: SetupComm Pin
Randor 2-Apr-08 8:26
professional Randor 2-Apr-08 8:26 
GeneralRe: SetupComm Pin
RomTibi2-Apr-08 10:01
RomTibi2-Apr-08 10:01 
QuestionNumber of waiting threads Pin
LionAM2-Apr-08 5:37
LionAM2-Apr-08 5:37 
GeneralRe: Number of waiting threads Pin
Eytukan2-Apr-08 5:53
Eytukan2-Apr-08 5:53 
GeneralRe: Number of waiting threads Pin
LionAM2-Apr-08 6:20
LionAM2-Apr-08 6:20 
Thank you for your answer.

VuNic wrote:
WaitForSingleObject waits for only one object.


But multiple threads can wait for one object - and I would like to know how many. The problem is:

when I use a (synchronized) counter before the WaitForSingleObject,
how do I know if the Thread has already reached it and is waiting
or was interrupted before - I can not unlock the counter atomically
with the WaitForSingleObject call...

Alex
GeneralRe: Number of waiting threads Pin
Mark Salsbery2-Apr-08 6:38
Mark Salsbery2-Apr-08 6:38 
GeneralRe: Number of waiting threads Pin
LionAM2-Apr-08 10:42
LionAM2-Apr-08 10:42 
GeneralRe: Number of waiting threads Pin
Mark Salsbery2-Apr-08 13:34
Mark Salsbery2-Apr-08 13:34 
GeneralRe: Number of waiting threads Pin
LionAM4-Apr-08 2:55
LionAM4-Apr-08 2:55 
GeneralRe: Number of waiting threads Pin
Mark Salsbery4-Apr-08 6:49
Mark Salsbery4-Apr-08 6:49 
GeneralRe: Number of waiting threads Pin
Mark Salsbery2-Apr-08 6:01
Mark Salsbery2-Apr-08 6:01 
GeneralMenu item is displyed as "@xyz@"... Pin
ptr_Electron2-Apr-08 5:05
ptr_Electron2-Apr-08 5:05 
GeneralRe: Menu item is displyed as "@xyz@"... Pin
led mike2-Apr-08 5:11
led mike2-Apr-08 5:11 
GeneralRe: Menu item is displyed as "@xyz@"... Pin
ptr_Electron2-Apr-08 5:39
ptr_Electron2-Apr-08 5:39 
GeneralRe: Menu item is displyed as "@xyz@"... Pin
Hamid_RT7-Apr-08 4:08
Hamid_RT7-Apr-08 4:08 
Questionreg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
ganesa moorthy2-Apr-08 4:50
ganesa moorthy2-Apr-08 4:50 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
Mark Salsbery2-Apr-08 6:08
Mark Salsbery2-Apr-08 6:08 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
ganesa moorthy3-Apr-08 19:36
ganesa moorthy3-Apr-08 19:36 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
Mark Salsbery4-Apr-08 6:04
Mark Salsbery4-Apr-08 6:04 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
Hamid_RT7-Apr-08 4:07
Hamid_RT7-Apr-08 4:07 
QuestionMixed metaphor problem Pin
Matthew Faithfull2-Apr-08 4:22
Matthew Faithfull2-Apr-08 4:22 
GeneralRe: Mixed metaphor problem Pin
Nemanja Trifunovic2-Apr-08 4:42
Nemanja Trifunovic2-Apr-08 4:42 

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.