Home » U++ Library support » U++ MT-multithreading and servers » Again ReadMemoryBarrier() etc
Again ReadMemoryBarrier() etc [message #10418] |
Sun, 08 July 2007 13:09 |
|
Mirek
You dont need to use sfence and write Your own functions as it is now
There are intristics for this on both x86 ad x64
http://msdn2.microsoft.com/en-us/library/65tt87y8(VS.80).aspx
the _WriteBarrier function forces writes to memory to complete at the point of the call. After the call, other threads can access the memory without fear that the thread that made the call might have a pending write to the memory.
<intrin.h>
_ReadBarrier, _WriteBarrier, and _ReadWriteBarrier
|
|
|
Goto Forum:
Current Time: Fri May 10 06:17:25 CEST 2024
Total time taken to generate the page: 0.02798 seconds
|