> There's only one exception to it, which is when the memory holds a 
> variable which can be written with a single instruction (like a 4 byte 
> integer) and you don't care if the reader thread gets an outdated value 
> from time to time.  In that case, I'd simply declare the variable as 
> volatile, and access it as usual in the code.
> 
> All other cases need synchronization.

True; I was thinking of the old days in which we had 16-bit access to 32-bit 
vars {:v)

--
Jason Teagle
[EMAIL PROTECTED]
 


_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to