C rmr context is now protected. Stabilizes rmr usage with multithreads
[ric-plt/xapp-frame.git] / pkg / xapp / types.go
index 251dae5..f3c47eb 100755 (executable)
@@ -28,11 +28,10 @@ type RMRStatistics struct{}
 
 type RMRClient struct {
        protPort      string
-       numWorkers    int
+       contextMux    sync.Mutex
        context       unsafe.Pointer
        ready         int
        wg            sync.WaitGroup
-       msgWg         sync.WaitGroup
        mux           sync.Mutex
        stat          map[string]Counter
        consumers     []MessageConsumer