mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
WDSP: removed useless atomic
This commit is contained in:
parent
5891dfa5da
commit
4ad190c401
@ -28,8 +28,6 @@ warren@wpratt.com
|
||||
#ifndef wdsp_txa_h
|
||||
#define wdsp_txa_h
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "comm.hpp"
|
||||
#include "unit.hpp"
|
||||
|
||||
@ -127,7 +125,7 @@ public:
|
||||
float f_low;
|
||||
float f_high;
|
||||
double meter[TXA_METERTYPE_LAST];
|
||||
std::atomic<long> upslew;
|
||||
long upslew;
|
||||
|
||||
struct
|
||||
{
|
||||
|
@ -28,8 +28,6 @@ warren@wpratt.com
|
||||
#ifndef wdsp_iqc_h
|
||||
#define wdsp_iqc_h
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "export.h"
|
||||
|
||||
namespace WDSP {
|
||||
@ -39,8 +37,8 @@ class TXA;
|
||||
class WDSP_API IQC
|
||||
{
|
||||
public:
|
||||
std::atomic<long> run;
|
||||
std::atomic<long> busy;
|
||||
long run;
|
||||
long busy;
|
||||
int size;
|
||||
float* in;
|
||||
float* out;
|
||||
|
@ -28,8 +28,6 @@ warren@wpratt.com
|
||||
#ifndef wdsp_rmatch_h
|
||||
#define wdsp_rmatch_h
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "export.h"
|
||||
|
||||
namespace WDSP {
|
||||
@ -76,7 +74,7 @@ public:
|
||||
class WDSP_API RMATCH
|
||||
{
|
||||
public:
|
||||
std::atomic<long> run;
|
||||
long run;
|
||||
float* in;
|
||||
float* out;
|
||||
int insize;
|
||||
@ -126,8 +124,8 @@ public:
|
||||
unsigned int write_startup;
|
||||
int control_flag;
|
||||
// diagnostics
|
||||
std::atomic<long> underflows;
|
||||
std::atomic<long> overflows;
|
||||
long underflows;
|
||||
long overflows;
|
||||
int force;
|
||||
float fvar;
|
||||
|
||||
|
@ -34,8 +34,6 @@ warren@wpratt.com
|
||||
#include "fftw3.h"
|
||||
#include "export.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace WDSP {
|
||||
|
||||
class RXA;
|
||||
@ -57,7 +55,7 @@ public:
|
||||
float* sipout;
|
||||
int fftsize;
|
||||
float* specout;
|
||||
std::atomic<long> specmode;
|
||||
long specmode;
|
||||
fftwf_plan sipplan;
|
||||
float* window;
|
||||
|
||||
|
@ -64,7 +64,16 @@ void USLEW::decalc_uslew (USLEW *a)
|
||||
delete[] (a->cup);
|
||||
}
|
||||
|
||||
USLEW* USLEW::create_uslew (TXA *txa, std::atomic<long> *ch_upslew, int size, float* in, float* out, float rate, float tdelay, float tupslew)
|
||||
USLEW* USLEW::create_uslew (
|
||||
TXA *txa,
|
||||
long *ch_upslew,
|
||||
int size,
|
||||
float* in,
|
||||
float* out,
|
||||
float rate,
|
||||
float tdelay,
|
||||
float tupslew
|
||||
)
|
||||
{
|
||||
USLEW *a = new USLEW;
|
||||
a->txa = txa;
|
||||
|
@ -28,8 +28,6 @@ warren@wpratt.com
|
||||
#ifndef wdsp_slew_h
|
||||
#define wdsp_slew_h
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "export.h"
|
||||
|
||||
namespace WDSP {
|
||||
@ -40,7 +38,7 @@ class WDSP_API USLEW
|
||||
{
|
||||
public:
|
||||
TXA *txa;
|
||||
std::atomic<long> *ch_upslew;
|
||||
long *ch_upslew;
|
||||
int size;
|
||||
float* in;
|
||||
float* out;
|
||||
@ -54,7 +52,15 @@ public:
|
||||
int ntup;
|
||||
float* cup;
|
||||
|
||||
static USLEW* create_uslew (TXA *txa, std::atomic<long> *ch_upslew, int size, float* in, float* out, float rate, float tdelay, float tupslew);
|
||||
static USLEW* create_uslew (
|
||||
TXA *txa,
|
||||
long *ch_upslew,
|
||||
int size, float* in,
|
||||
float* out,
|
||||
float rate,
|
||||
float tdelay,
|
||||
float tupslew
|
||||
);
|
||||
static void destroy_uslew (USLEW *a);
|
||||
static void flush_uslew (USLEW *a);
|
||||
static void xuslew (USLEW *a);
|
||||
|
Loading…
Reference in New Issue
Block a user