Commit 12b353fa authored by Sakthivel Velumani's avatar Sakthivel Velumani Committed by Raymond Knopp

thread keys for identifying functions

parent 9502bbd0
......@@ -126,7 +126,7 @@ void tx_func(void *param) {
syncMsg->slot_tx = slot_tx;
syncMsg->timestamp_tx = info->timestamp_tx;
syncMsg->ru = gNB->RU_list[0];
res->key = slot_tx;
res->key = RU_TX_THREAD_START_ID + slot_tx;
pushTpool(gNB->threadPool, res);
}
......@@ -253,7 +253,7 @@ void rx_func(void *param) {
syncMsg->frame_tx = frame_tx;
syncMsg->slot_tx = slot_tx;
syncMsg->timestamp_tx = info->timestamp_tx;
res->key = slot_tx;
res->key = L1_TX_THREAD_START_ID + slot_tx;
pushTpool(gNB->threadPool, res);
}
......
......@@ -1390,7 +1390,7 @@ void *ru_thread( void *param ) {
syncMsg->frame_tx = proc->frame_tx;
syncMsg->slot_tx = proc->tti_tx;
syncMsg->timestamp_tx = proc->timestamp_tx;
res->key = proc->tti_rx;
res->key = L1_RX_THREAD_START_ID + proc->tti_rx;
pushTpool(gNB->threadPool, res);
}
......
......@@ -77,6 +77,11 @@
#define RX_NB_TH 2
#define RX_NB_TH_DL 14
#define L1_RX_THREAD_START_ID 1000
#define L1_TX_THREAD_START_ID 2000
#define RU_TX_THREAD_START_ID 3000
#define LTE_SLOTS_PER_SUBFRAME 2
#define LTE_NUMBER_OF_SUBFRAMES_PER_FRAME 10
......
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