47 #if defined(_OS_UNIX_) || defined(_OS_MAC_) 49 #elif defined(_OS_WIN32_) 57 bool testAndSet(
int expectedValue,
int newValue);
58 int fetchAndAdd(
int valueToAdd);
59 operator int ()
const {
return m_value; }
60 bool operator==(
int value)
const {
return m_value == value; }
61 bool operator!=(
int value)
const {
return m_value != value; }
62 bool operator!()
const {
return m_value == 0; }
79 #if defined(_OS_UNIX_) || defined(_OS_MAC_) 81 pthread_mutex_t mutex;
83 #elif defined(_OS_WIN32_) 86 #error "unsupported platform" Definition: qmutex_p.h:53
Definition: qmutex_p.h:68