Added hex labeling option to graphs in flowview and frame info windows, a few tweaks for potential QT6 support

This commit is contained in:
Collin Kidder
2021-09-06 19:25:59 -04:00
parent da0f1fe87e
commit 1f421c5d2c
11 changed files with 75 additions and 12 deletions
+6 -6
View File
@@ -6,8 +6,8 @@
/* macros */
#define IS_EMPTY() ( mWIdx.load() == mRIdx.load() )
#define IS_FULL() ( (mWIdx.load()+1)%mSize == mRIdx.load() )
#define IS_EMPTY() ( mWIdx.loadAcquire() == mRIdx.loadAcquire() )
#define IS_FULL() ( (mWIdx.loadAcquire()+1)%mSize == mRIdx.loadAcquire() )
template<class T>
@@ -38,8 +38,8 @@ public:
}
void flush() {
mRIdx.store(0);
mWIdx.store(0);
mRIdx.storeRelease(0);
mWIdx.storeRelease(0);
}
T* get() {
@@ -56,7 +56,7 @@ public:
qCritical() << "BUG: queueing in full queue";
#endif
int wIdx = mWIdx.load();
int wIdx = mWIdx.loadAcquire();
mWIdx.storeRelease((wIdx+1)%mSize);
}
@@ -75,7 +75,7 @@ public:
qCritical() << "BUG: dequeueing an empty queue";
#endif
int rIdx = mRIdx.load();
int rIdx = mRIdx.loadAcquire();
mRIdx.storeRelease((rIdx+1)%mSize);
}