20 #ifndef ATOMICINTEGER_H_
21 #define ATOMICINTEGER_H_
23 #include <com/avpkit/ferry/JNIHelper.h>
25 namespace com {
namespace avpkit {
namespace ferry {
55 int32_t getAndSet(int32_t);
56 int32_t getAndIncrement();
57 int32_t getAndDecrement();
58 int32_t getAndAdd(int32_t);
59 int32_t incrementAndGet();
60 int32_t decrementAndGet();
61 int32_t addAndGet(int32_t);
70 bool compareAndSet(int32_t expected, int32_t update);
83 int32_t mNonAtomicValue;
85 static void initializeClass(JavaVM*,
void*);
86 void initializeObject();
88 static jmethodID mConstructorMethod;
89 static jmethodID mGetMethod;
90 static jmethodID mSetMethod;
91 static jmethodID mGetAndSetMethod;
92 static jmethodID mGetAndIncrementMethod;
93 static jmethodID mGetAndDecrementMethod;
94 static jmethodID mGetAndAddMethod;
95 static jmethodID mIncrementAndGetMethod;
96 static jmethodID mDecrementAndGetMethod;
97 static jmethodID mAddAndGetMethod;
98 static jmethodID mCompareAndSetMethod;
100 static bool mInitialized;
The JNIHelper object contains a series of methods designed to assist functions when running inside a ...
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...