Renamed atomic functions to match SDL 3.0 naming convention

This will also allow us to cleanly add atomic operations for other types in the future.
This commit is contained in:
Sam Lantinga 2024-09-16 23:21:31 -07:00
parent f3e419596b
commit 8d223b3037
64 changed files with 496 additions and 472 deletions

View file

@ -2907,12 +2907,37 @@ expression e1, e2, e3, e4;
@@
@@
- SDL_AtomicCAS
+ SDL_AtomicCompareAndSwap
+ SDL_CompareAndSwapAtomicInt
(...)
@@
@@
- SDL_AtomicSet
+ SDL_SetAtomicInt
(...)
@@
@@
- SDL_AtomicGet
+ SDL_GetAtomicInt
(...)
@@
@@
- SDL_AtomicAdd
+ SDL_AddAtomicInt
(...)
@@
@@
- SDL_AtomicCASPtr
+ SDL_AtomicCompareAndSwapPointer
+ SDL_CompareAndSwapAtomicPointer
(...)
@@
@@
- SDL_AtomicSetPtr
+ SDL_SetAtomicPointer
(...)
@@
@@
- SDL_AtomicGetPtr
+ SDL_GetAtomicPointer
(...)
@@
@@
@ -3586,16 +3611,6 @@ typedef SDL_JoystickGUID, SDL_GUID;
+ SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE
@@
@@
- SDL_AtomicSetPtr
+ SDL_AtomicSetPointer
(...)
@@
@@
- SDL_AtomicGetPtr
+ SDL_AtomicGetPointer
(...)
@@
@@
- SDL_DelEventWatch
+ SDL_RemoveEventWatch
(...)