On Tue, 16 Jun 2009, Mindaugas Kavaliauskas wrote: Hi,
>> The race condition in this case is not hardware problem (we do not need >> additional synchronization mechanism to protect pMutex->waiters at least >> on machines for which Harbour can be ported) but logical one. > OK. I was afraid , that accessing pMutex->waiters could cause garbage on > some systems in some cases like, unaligned data, etc. If pMutex->waiters is > atomic, I see no problem. To be precise: it's atomic on supported hardware because it's well aligned. Valid alignment is a must in such access. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour