#include "qplatformdefs.h"
#include <QtCore/qatomic.h>
Go to the source code of this file.
◆ QBasicAtomicInt_fetchAndAddOrdered()
Q_CORE_EXPORT int QBasicAtomicInt_fetchAndAddOrdered |
( |
volatile int * |
_q_value, |
|
|
int |
valueToAdd |
|
) |
| |
Definition at line 87 of file qatomic_generic_windows.cpp.
91 returnValue = *_q_value;
92 *_q_value += valueToAdd;
static QCriticalSection qAtomicCriticalSection
◆ QBasicAtomicInt_fetchAndStoreOrdered()
Q_CORE_EXPORT int QBasicAtomicInt_fetchAndStoreOrdered |
( |
volatile int * |
_q_value, |
|
|
int |
newValue |
|
) |
| |
◆ QBasicAtomicInt_testAndSetOrdered()
Q_CORE_EXPORT bool QBasicAtomicInt_testAndSetOrdered |
( |
volatile int * |
_q_value, |
|
|
int |
expectedValue, |
|
|
int |
newValue |
|
) |
| |
Definition at line 63 of file qatomic_generic_windows.cpp.
65 bool returnValue =
false;
67 if (*_q_value == expectedValue) {
static QCriticalSection qAtomicCriticalSection
◆ QBasicAtomicPointer_fetchAndAddOrdered()
Q_CORE_EXPORT void* QBasicAtomicPointer_fetchAndAddOrdered |
( |
void *volatile * |
_q_value, |
|
|
qptrdiff |
valueToAdd |
|
) |
| |
Definition at line 124 of file qatomic_generic_windows.cpp.
128 returnValue = *_q_value;
129 *_q_value =
reinterpret_cast<char *
>(returnValue) + valueToAdd;
static QCriticalSection qAtomicCriticalSection
◆ QBasicAtomicPointer_fetchAndStoreOrdered()
Q_CORE_EXPORT void* QBasicAtomicPointer_fetchAndStoreOrdered |
( |
void *volatile * |
_q_value, |
|
|
void * |
newValue |
|
) |
| |
Definition at line 113 of file qatomic_generic_windows.cpp.
117 returnValue = *_q_value;
118 *_q_value = newValue;
static QCriticalSection qAtomicCriticalSection
◆ QBasicAtomicPointer_testAndSetOrdered()
Q_CORE_EXPORT bool QBasicAtomicPointer_testAndSetOrdered |
( |
void *volatile * |
_q_value, |
|
|
void * |
expectedValue, |
|
|
void * |
newValue |
|
) |
| |
Definition at line 98 of file qatomic_generic_windows.cpp.
102 bool returnValue =
false;
104 if (*_q_value == expectedValue) {
105 *_q_value = newValue;
static QCriticalSection qAtomicCriticalSection
◆ qAtomicCriticalSection