lib/ovs-atomic-msvc.h
/* MSVCs c++ compiler implements c11 atomics and looking through its
 * implementation (in xatomic.h), orders are ignored for x86 platform.
 * Do the same here. */
MSVCs c++ compiler implements c11 atomics and looking through its
implementation (in xatomic.h), orders are ignored for x86 platform.
Do the same here.
MSVCs c ++ compiler implements c11 atomics and looking through its implementation ( in xatomic . h ) orders are ignored for x86 platform . Do the same here .
static inline bool
atomic_compare_exchange8(int8_t volatile *dst, int8_t *expected, int8_t src)
{
    int8_t previous = _InterlockedCompareExchange8((char volatile *)dst,
                                                   src, *expected);
    if (previous == *expected) {
        return true;
    } else {
        *expected = previous;
        return false;
    }
}
static inline bool atomic_compare_exchange8 ( int8_t volatile * dst , int8_t * expected , int8_t src ) { int8_t previous = _InterlockedCompareExchange8 ( ( char volatile * ) dst , src , * expected ) ; if ( previous == * expected ) { return true ; } else { * expected = previous ; return false ; } }
MSVCs c++ compiler implements c11 atomics and looking through its
 implementation (in xatomic.h), orders are ignored for x86 platform.
MSVCs c ++ compiler implements c11 atomics and looking through its implementation ( in xatomic . h ) orders are ignored for x86 platform .