Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProper declaration of array with volatile values inside it? Pin
arnold_w7-Dec-16 3:30
arnold_w7-Dec-16 3:30 
AnswerRe: Proper declaration of array with volatile values inside it? Pin
Jochen Arndt7-Dec-16 4:22
professionalJochen Arndt7-Dec-16 4:22 
AnswerRe: Proper declaration of array with volatile values inside it? Pin
leon de boer7-Dec-16 6:39
leon de boer7-Dec-16 6:39 
QuestionTree Ctrl Object Selection Pin
raajpatel4-Dec-16 20:57
raajpatel4-Dec-16 20:57 
GeneralRe: Tree Ctrl Object Selection Pin
Richard MacCutchan4-Dec-16 21:16
mveRichard MacCutchan4-Dec-16 21:16 
GeneralRe: Tree Ctrl Object Selection Pin
raajpatel5-Dec-16 1:20
raajpatel5-Dec-16 1:20 
GeneralRe: Tree Ctrl Object Selection Pin
Peter_in_27805-Dec-16 1:36
professionalPeter_in_27805-Dec-16 1:36 
QuestionMutex WaitForSingleObject does not Signal Pin
ForNow1-Dec-16 13:14
ForNow1-Dec-16 13:14 
I piece of code that is executed by 4 threads. I want to Serialize it one at a time

So I Create a Mutex handle = CreateMutex(NULL,FALSE,NULL);

I observe that the HANDLE its not NULL

Then I "dwWaitResult = WaitForSingleObject(sysblk.single_thread,INFINITE)"

(I am running this under VS debugger and have a few breakpoints before I do the ReleaseMutex)

Then finally the first thread gets to the end of the serialized code.

I do a "ReleaseMutex(sysblk.single_thread)" it returns 1 however

When I look back at the VS Threads Window and click on each the 3 threads there is an inverted arrow at the WaitForSingleObject indicating

that none of the threads were signaled

Thanks
AnswerRe: Mutex WaitForSingleObject does not Signal Pin
Richard MacCutchan1-Dec-16 21:39
mveRichard MacCutchan1-Dec-16 21:39 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow2-Dec-16 2:25
ForNow2-Dec-16 2:25 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Richard MacCutchan2-Dec-16 3:01
mveRichard MacCutchan2-Dec-16 3:01 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow10-Dec-16 15:12
ForNow10-Dec-16 15:12 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Richard MacCutchan10-Dec-16 20:46
mveRichard MacCutchan10-Dec-16 20:46 
AnswerRe: Mutex WaitForSingleObject does not Signal Pin
Munchies_Matt9-Dec-16 2:52
Munchies_Matt9-Dec-16 2:52 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow10-Dec-16 15:07
ForNow10-Dec-16 15:07 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Munchies_Matt10-Dec-16 21:01
Munchies_Matt10-Dec-16 21:01 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
ForNow11-Dec-16 0:17
ForNow11-Dec-16 0:17 
GeneralRe: Mutex WaitForSingleObject does not Signal Pin
Munchies_Matt11-Dec-16 21:48
Munchies_Matt11-Dec-16 21:48 
QuestionC++ Pin
Member 1287185126-Nov-16 3:50
Member 1287185126-Nov-16 3:50 
AnswerRe: C++ Pin
PIEBALDconsult26-Nov-16 4:10
mvePIEBALDconsult26-Nov-16 4:10 
AnswerRe: C++ Pin
Richard MacCutchan26-Nov-16 4:12
mveRichard MacCutchan26-Nov-16 4:12 
AnswerRe: C++ Pin
Afzaal Ahmad Zeeshan26-Nov-16 4:39
professionalAfzaal Ahmad Zeeshan26-Nov-16 4:39 
AnswerRe: C++ Pin
Patrice T29-Nov-16 17:14
mvePatrice T29-Nov-16 17:14 
QuestionGame dev tutorials for c++ Pin
dolfijn300025-Nov-16 7:48
dolfijn300025-Nov-16 7:48 
AnswerRe: Game dev tutorials for c++ Pin
Afzaal Ahmad Zeeshan26-Nov-16 4:44
professionalAfzaal Ahmad Zeeshan26-Nov-16 4:44 

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.