Re: Adding DECLSPEC_ALIGN(4) to structs for atomic DWORD access

2013-01-21 Thread Dmitry Timoshkov
wrote: > there are some places in Wine where I believe atomic access to 32bit entities > is expected by the programmer, yet I see little or no measures to ensure this. Then it's a bug, and should be fixed by adding appropriate locking. -- Dmitry.

Re: Adding DECLSPEC_ALIGN(4) to structs for atomic DWORD access

2013-01-21 Thread David Laight
On Mon, Jan 21, 2013 at 06:52:23PM +0100, joerg-cyril.hoe...@t-systems.com wrote: > Hi, > > there are some places in Wine where I believe atomic access to 32bit entities > is expected by the programmer, yet I see little or no measures to ensure this. > > DWORD-Alignment is essential when several

Adding DECLSPEC_ALIGN(4) to structs for atomic DWORD access

2013-01-21 Thread Joerg-Cyril.Hoehle
Hi, there are some places in Wine where I believe atomic access to 32bit entities is expected by the programmer, yet I see little or no measures to ensure this. DWORD-Alignment is essential when several threads can access the same DWORD variable outside of a mutex (or within the implementation of