Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Again ReadMemoryBarrier() etc
Again ReadMemoryBarrier() etc [message #10418] Sun, 08 July 2007 13:09 Go to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT assertion failed in IsST()
Next Topic: Non-Blocking socket example
Goto Forum:
  


Current Time: Fri May 10 06:17:25 CEST 2024

Total time taken to generate the page: 0.02798 seconds