Click here to Skip to main content
13,803,326 members

C / C++ / MFC

 
GeneralRe: volatile misbehaves Pin
Vaclav_19-May-18 15:02
memberVaclav_19-May-18 15:02 
GeneralRe: volatile misbehaves Pin
Vaclav_19-May-18 15:36
memberVaclav_19-May-18 15:36 
GeneralRe: volatile misbehaves Pin
leon de boer20-May-18 5:41
memberleon de boer20-May-18 5:41 
GeneralRe: volatile misbehaves Pin
Vaclav_20-May-18 6:44
memberVaclav_20-May-18 6:44 
GeneralRe: volatile misbehaves Pin
leon de boer20-May-18 21:35
memberleon de boer20-May-18 21:35 
GeneralRe: volatile misbehaves Pin
Vaclav_21-May-18 4:18
memberVaclav_21-May-18 4:18 
GeneralRe: volatile misbehaves Pin
leon de boer21-May-18 5:33
memberleon de boer21-May-18 5:33 
Question__sync_synchronize stops processor ? Pin
Vaclav_16-May-18 11:31
memberVaclav_16-May-18 11:31 
I am "porting" C code into C++, mainly to gain an experience.
Run into this , undocumented , piece of code.
Did some reading and have basic understanding WHAT is suppose to do.
Preventing multiprocessors to clobber each other or multiple access to shared devices / memory.
So far my software is for single CPU and no sharing of I/O , not yet.

That is NOT my concern.

What I would like to know why it stops running the process PAST the first usage of
__sync_synchronize();

It compiles just fine.


<pre lang="c++">
__sync_synchronize();
STOPS HERE
ret = *paddr;
__sync_synchronize();
</pre>

Thanks
Cheers Vaclav
AnswerRe: __sync_synchronize stops processor ? Pin
Randor 16-May-18 13:15
professional Randor 16-May-18 13:15 
GeneralRe: __sync_synchronize stops processor ? Pin
Vaclav_16-May-18 14:15
memberVaclav_16-May-18 14:15 
GeneralRe: __sync_synchronize stops processor ? Pin
Randor 16-May-18 15:10
professional Randor 16-May-18 15:10 
GeneralRe: __sync_synchronize stops processor ? Pin
Vaclav_17-May-18 4:22
memberVaclav_17-May-18 4:22 
QuestionTo install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
manoharbalu14-May-18 20:30
membermanoharbalu14-May-18 20:30 
AnswerRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
Victor Nijegorodov14-May-18 21:24
memberVictor Nijegorodov14-May-18 21:24 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
manoharbalu14-May-18 21:50
membermanoharbalu14-May-18 21:50 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
Victor Nijegorodov14-May-18 23:56
memberVictor Nijegorodov14-May-18 23:56 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
manoharbalu15-May-18 4:10
membermanoharbalu15-May-18 4:10 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
Victor Nijegorodov15-May-18 4:40
memberVictor Nijegorodov15-May-18 4:40 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
manoharbalu15-May-18 4:48
membermanoharbalu15-May-18 4:48 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
leon de boer15-May-18 6:50
memberleon de boer15-May-18 6:50 
GeneralRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
Victor Nijegorodov15-May-18 10:57
memberVictor Nijegorodov15-May-18 10:57 
AnswerRe: To install Visual Studio(2008 Pro,2010 Express and 2013 Express) in the same machine Pin
Joe Woodbury17-May-18 6:55
professionalJoe Woodbury17-May-18 6:55 
QuestionCInternetSession OpenURL Pin
_Flaviu14-May-18 1:34
member_Flaviu14-May-18 1:34 
AnswerRe: CInternetSession OpenURL Pin
Jochen Arndt14-May-18 3:01
mvpJochen Arndt14-May-18 3:01 
GeneralRe: CInternetSession OpenURL Pin
_Flaviu14-May-18 3:24
member_Flaviu14-May-18 3:24 

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.


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.181215.1 | Last Updated 18 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid