[vlc-devel] [vlc-commits] commit: Safer vlc_atomic_set for win32. (Laurent Aimar )

Laurent Aimar fenrir at elivagar.org
Thu Jul 1 20:36:17 CEST 2010

On Thu, 2010-07-01 at 20:33 +0200, git at videolan.org wrote:
> vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jul  1 20:32:44 2010 +0200| [6f9bf4ab7f99b89c6c2d6c977028b34f71095a18] | committer: Laurent Aimar 
> Safer vlc_atomic_set for win32.

The same should probably be done to vlc_atomic_get().
The only way I see using win32 API is to use InterlockedExchangeAdd(&,
0) (or the same idea using And/Xor/Or) but the const in the
vlc_atomic_get() prototype prevent me to do so.


More information about the vlc-devel mailing list