Commit 7e112c4c authored by Laurent THOMAS's avatar Laurent THOMAS

fix qtscope with new api

parent 37752af2
...@@ -1234,12 +1234,14 @@ void *nrUEQtscopeThread(void *arg) ...@@ -1234,12 +1234,14 @@ void *nrUEQtscopeThread(void *arg)
// gNB scope initialization // gNB scope initialization
void nrgNBinitQtScope(scopeParms_t *p) void nrgNBinitQtScope(scopeParms_t *p)
{ {
scopeData_t *scope = (scopeData_t *)malloc(sizeof(scopeData_t)); scopeData_t *scope = (scopeData_t *)calloc(sizeof(scopeData_t), 1);
scope->gNB = p->gNB; scope->gNB = p->gNB;
scope->argc = p->argc; scope->argc = p->argc;
scope->argv = p->argv; scope->argv = p->argv;
scope->ru = p->ru; scope->ru = p->ru;
scope->copyData = copyData;
copyDataMutexInit(scope);
p->gNB->scopeData = scope; p->gNB->scopeData = scope;
...@@ -1250,11 +1252,10 @@ void nrgNBinitQtScope(scopeParms_t *p) ...@@ -1250,11 +1252,10 @@ void nrgNBinitQtScope(scopeParms_t *p)
// UE scope initialization // UE scope initialization
void nrUEinitQtScope(PHY_VARS_NR_UE *ue) void nrUEinitQtScope(PHY_VARS_NR_UE *ue)
{ {
scopeData_t *scope = (scopeData_t *)malloc(sizeof(scopeData_t)); scopeData_t *scope = (scopeData_t *)calloc(sizeof(scopeData_t), 1);
scope->liveData = calloc(sizeof(scopeGraphData_t *), UEdataTypeNumberOfItems); scope->copyData = copyData;
scope->copyData = UEcopyData; copyDataMutexInit(scope);
UEcopyDataMutexInit();
ue->scopeData = scope; ue->scopeData = scope;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment