Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: synchronizing simple types Pin
Konrad Windszus1-Mar-04 4:08
Konrad Windszus1-Mar-04 4:08 
GeneralRe: synchronizing simple types Pin
Prakash Nadar1-Mar-04 4:43
Prakash Nadar1-Mar-04 4:43 
GeneralRe: synchronizing simple types Pin
Joe Woodbury1-Mar-04 18:35
professionalJoe Woodbury1-Mar-04 18:35 
GeneralRe: synchronizing simple types Pin
Konrad Windszus2-Mar-04 0:20
Konrad Windszus2-Mar-04 0:20 
GeneralRe: synchronizing simple types Pin
Robert A. T. Káldy2-Mar-04 1:04
Robert A. T. Káldy2-Mar-04 1:04 
GeneralRe: synchronizing simple types Pin
Konrad Windszus2-Mar-04 2:14
Konrad Windszus2-Mar-04 2:14 
GeneralRe: synchronizing simple types Pin
Joe Woodbury2-Mar-04 5:31
professionalJoe Woodbury2-Mar-04 5:31 
GeneralRe: synchronizing simple types Pin
Robert A. T. Káldy2-Mar-04 5:33
Robert A. T. Káldy2-Mar-04 5:33 
I think you're right. 8- and 16-bit writing should be atomic too. The operation is made by only one assembler instruction MOV.
Volatile declaration is necessary, because it tells to compiler, that its value may be changed every time by another thread. For example, if you're referring to the variable multiple times in one thread, the compiler should optimize it by storing its value in register. If another thread changes the value, you have a different value in memory and register and the program could not behave correctly. Volatile declaration ensures, that the value of variable is always taken from the memory.

Robert-Antonio

"Czech Railways discovered, that in case of disaster the most damaged wagons
were the first and the last. So they decided to create trains without them."

GeneralQuery: Display Line Number infront of each Line of source (MFC) Pin
irshad_bukhari1-Mar-04 2:46
irshad_bukhari1-Mar-04 2:46 
GeneralRe: Query: Display Line Number infront of each Line of source (MFC) Pin
Prakash Nadar1-Mar-04 2:57
Prakash Nadar1-Mar-04 2:57 
GeneralRe: Query: Display Line Number infront of each Line of source (MFC) Pin
David Crow1-Mar-04 3:01
David Crow1-Mar-04 3:01 
GeneralRe: Query: Display Line Number infront of each Line of source (MFC) Pin
irshad_bukhari1-Mar-04 21:53
irshad_bukhari1-Mar-04 21:53 
Generaldebug a service Pin
Anonymous1-Mar-04 2:41
Anonymous1-Mar-04 2:41 
GeneralRe: debug a service Pin
Prakash Nadar1-Mar-04 2:56
Prakash Nadar1-Mar-04 2:56 
GeneralRe: debug a service Pin
Diddy2-Mar-04 11:30
Diddy2-Mar-04 11:30 
GeneralWindows shutdown Pin
rw1041-Mar-04 2:22
rw1041-Mar-04 2:22 
GeneralRe: Windows shutdown Pin
David Crow1-Mar-04 3:09
David Crow1-Mar-04 3:09 
GeneralRe: Windows shutdown Pin
KaЯl1-Mar-04 3:11
KaЯl1-Mar-04 3:11 
GeneralMenu... Pin
Micke B29-Feb-04 23:54
Micke B29-Feb-04 23:54 
GeneralRe: Menu... Pin
Prakash Nadar1-Mar-04 0:09
Prakash Nadar1-Mar-04 0:09 
GeneralRe: Menu... Pin
Steve S1-Mar-04 0:22
Steve S1-Mar-04 0:22 
GeneralRe: Menu... Pin
Anonymous1-Mar-04 3:04
Anonymous1-Mar-04 3:04 
GeneralRe: Menu... Pin
Micke B1-Mar-04 3:24
Micke B1-Mar-04 3:24 
GeneralRe: Menu... Pin
Steve S1-Mar-04 6:35
Steve S1-Mar-04 6:35 
QuestionHow to get HDD serial number from Windows98? Pin
george ivanov29-Feb-04 23:27
george ivanov29-Feb-04 23:27 

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.