Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Compiler On Linux Pin
Richard MacCutchan8-Nov-13 23:00
mveRichard MacCutchan8-Nov-13 23:00 
AnswerRe: Compiler On Linux Pin
Albert Holguin14-Nov-13 5:24
professionalAlbert Holguin14-Nov-13 5:24 
GeneralRe: Compiler On Linux Pin
Thong LeTrung16-Nov-13 20:25
Thong LeTrung16-Nov-13 20:25 
Questionvolatile local variable Pin
econy6-Nov-13 3:32
econy6-Nov-13 3:32 
AnswerRe: volatile local variable Pin
David Knechtges6-Nov-13 3:37
David Knechtges6-Nov-13 3:37 
GeneralRe: volatile local variable Pin
econy6-Nov-13 4:19
econy6-Nov-13 4:19 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 4:23
pasztorpisti6-Nov-13 4:23 
GeneralRe: volatile local variable Pin
econy6-Nov-13 4:44
econy6-Nov-13 4:44 
thanks, what you said like:
C++
volatile int* aPtr = aSharedMem;

right? then in another thread,
C++
aSharedMem = aNewValue;

then in the current thread, stalled before aSharedMem=aNewValue, then resume, *aPtr get the aNewValue.

if local variable just copy a global's value, like:
volatile int aLocal = aGlobal;
then in another thread, aGlobal = aNewValue;
in current thread, stalled before aGlobal = aNewValue, then resume, aLocal will get aNewValue?
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:15
pasztorpisti6-Nov-13 5:15 
GeneralRe: volatile local variable Pin
econy6-Nov-13 5:36
econy6-Nov-13 5:36 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:39
pasztorpisti6-Nov-13 5:39 
GeneralRe: volatile local variable Pin
Aescleal6-Nov-13 4:49
Aescleal6-Nov-13 4:49 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:09
pasztorpisti6-Nov-13 5:09 
AnswerRe: volatile local variable Pin
jschell6-Nov-13 8:03
jschell6-Nov-13 8:03 
Question_com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:14
Mike Grove5-Nov-13 22:14 
SuggestionRe: _com_error not caught by 'Try-Catch' code Pin
Richard MacCutchan5-Nov-13 22:26
mveRichard MacCutchan5-Nov-13 22:26 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:53
Mike Grove5-Nov-13 22:53 
AnswerRe: _com_error not caught by 'Try-Catch' code Pin
Aescleal5-Nov-13 22:36
Aescleal5-Nov-13 22:36 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:57
Mike Grove5-Nov-13 22:57 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Aescleal5-Nov-13 23:38
Aescleal5-Nov-13 23:38 
Questionmfc Pin
shizhanbiao5-Nov-13 19:59
shizhanbiao5-Nov-13 19:59 
AnswerRe: mfc Pin
CPallini5-Nov-13 21:32
mveCPallini5-Nov-13 21:32 
QuestionRe: mfc Pin
David Crow6-Nov-13 4:13
David Crow6-Nov-13 4:13 
QuestionGetting output parameters value[Solved] Pin
pkfox4-Nov-13 4:04
professionalpkfox4-Nov-13 4:04 
SuggestionRe: Gettin output parameters value Pin
Richard MacCutchan4-Nov-13 6:10
mveRichard MacCutchan4-Nov-13 6:10 

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.