diff options
| author | 2026-03-24 15:09:17 +1100 | |
|---|---|---|
| committer | 2026-03-24 15:09:17 +1100 | |
| commit | b97d835bbc176c94c9e320a0de9d14550205fe91 (patch) | |
| tree | 8d2d5b920c947c7dc0d7fa7e278b72c280eac590 /src/osd | |
| parent | 2da5b2a3d7f6b02cdcc8931b09a35bd47a84fd5a (diff) | |
osd/osdsync.cpp: Removed misguided qualifiers.
Diffstat (limited to 'src/osd')
| -rw-r--r-- | src/osd/osdsync.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/osd/osdsync.cpp b/src/osd/osdsync.cpp index b2300e93ee6..b227c07235f 100644 --- a/src/osd/osdsync.cpp +++ b/src/osd/osdsync.cpp @@ -60,10 +60,10 @@ #define end_timing(v) do { } while (0) #endif -template<typename _AtomType, typename _MainType> -static void spin_while(const volatile _AtomType * volatile atom, const _MainType val, const osd_ticks_t timeout, const int invert = 0) +template <typename AtomType, typename MainType> +static void spin_while(const volatile AtomType *atom, MainType val, osd_ticks_t timeout, int invert = 0) { - osd_ticks_t stopspin = osd_ticks() + timeout; + const osd_ticks_t stopspin = osd_ticks() + timeout; do { int spin = 10000; @@ -75,10 +75,10 @@ static void spin_while(const volatile _AtomType * volatile atom, const _MainType } while (((*atom == val) ^ invert) && osd_ticks() < stopspin); } -template<typename _AtomType, typename _MainType> -static void spin_while_not(const volatile _AtomType * volatile atom, const _MainType val, const osd_ticks_t timeout) +template <typename AtomType, typename MainType> +static void spin_while_not(const volatile AtomType *atom, MainType val, osd_ticks_t timeout) { - spin_while<_AtomType, _MainType>(atom, val, timeout, 1); + spin_while<AtomType, MainType>(atom, val, timeout, 1); } //============================================================ |
