Commit 6f9bf4ab authored by Laurent Aimar's avatar Laurent Aimar

Safer vlc_atomic_set for win32.

parent 7d8a47a7
......@@ -34,7 +34,11 @@ uintptr_t vlc_atomic_get (const vlc_atomic_t *atom)
uintptr_t vlc_atomic_set (vlc_atomic_t *atom, uintptr_t v)
{
atom->u = v;
#if defined (WIN64)
InterlockedExchange64 (&atom->u, v);
#else
InterlockedExchange (&atom->u, v);
#endif
return v;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment