Quantcast
Channel: What is the scope of atomic_thread_ fence? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

What is the scope of atomic_thread_ fence?

$
0
0

*Please understand that I am not from an English-spoken country, so if you couldn’t understand my question, please let me know so I can explain in other words. J

Is the fence scope of atomic_thread_fence a scope unit that has been designated as “{}”?

For example,MainActivity C++

//section Aif(A == 1){   //section B   atomic_thread_fence(..);   //section C}//section D

Regarding to the above code, I’d like to know if the fence is applied only in the section B and section C, or it gets applied in other sections too.

Thanks.~


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images