U++ framework
Do not panic. Ask here before giving up.

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: Mon Apr 27 01:54:15 GMT+2 2026

Total time taken to generate the page: 0.00486 seconds