[Lazarus] thread safe

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Jun 28 16:47:26 CEST 2011


Henry Vermaak schrieb:


> You'll have to read the generated assembler for Windows critical 
> sections.  My hunch would be that they use memory barriers, too.

 >>
When a critical section object is owned, the only other threads affected 
are the threads that are waiting for ownership in a call to 
EnterCriticalSection. Threads that are not waiting are free to continue 
running.
<<

I don't see anything like memory barriers here.

DoDi






More information about the Lazarus mailing list