>>27
while i agree that access to data by multiple threads should be protected by a mutex to prevent race conditions i am also of the opinion that one should be able to do the same without the help of CPU specific instructions or OS specific functions, even if it is not optimal.