Actor model imlementation
Add actor library which implements the Actor model (see https://en.wikipedia.org/wiki/Actor_model).
This commit is contained in:
+1
-1
@@ -872,7 +872,7 @@ void *UE_thread(void *arg)
|
||||
}
|
||||
syncMsg->UE = UE;
|
||||
memset(&syncMsg->proc, 0, sizeof(syncMsg->proc));
|
||||
pushTpool(&(get_nrUE_params()->Tpool), Msg);
|
||||
pushNotifiedFIFO(&UE->sync_actor.fifo, Msg);
|
||||
trashed_frames = 0;
|
||||
syncRunning = true;
|
||||
continue;
|
||||
|
||||
@@ -88,6 +88,7 @@ unsigned short config_frames[4] = {2,9,11,13};
|
||||
#include <openair1/PHY/MODULATION/nr_modulation.h>
|
||||
#include "openair2/GNB_APP/gnb_paramdef.h"
|
||||
#include "pdcp.h"
|
||||
#include "actor.h"
|
||||
|
||||
extern const char *duplex_mode[];
|
||||
THREAD_STRUCT thread_struct;
|
||||
@@ -495,6 +496,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
UE[CC_id]->sl_mode = get_softmodem_params()->sl_mode;
|
||||
init_actor(&UE[CC_id]->sync_actor, "SYNC_", -1);
|
||||
init_nr_ue_vars(UE[CC_id], inst);
|
||||
|
||||
if (UE[CC_id]->sl_mode) {
|
||||
|
||||
Reference in New Issue
Block a user