bug fix for missing wait sync
This commit is contained in:
@@ -560,6 +560,9 @@ void *te_thread(void *param) {
|
||||
|
||||
PHY_VARS_eNB *eNB = ((te_params *)param)->eNB;
|
||||
eNB_proc_t *proc = &eNB->proc;
|
||||
|
||||
wait_sync("te_thread");
|
||||
|
||||
while (!oai_exit) {
|
||||
|
||||
if (wait_on_condition(&proc->mutex_te[0],&proc->cond_te[0],&proc->instance_cnt_te[0],"te thread")<0) break;
|
||||
@@ -597,6 +600,9 @@ void *te_thread1(void *param) {
|
||||
|
||||
PHY_VARS_eNB *eNB = ((te_params *)param)->eNB;
|
||||
eNB_proc_t *proc = &eNB->proc;
|
||||
|
||||
wait_sync("te_thread1");
|
||||
|
||||
while (!oai_exit) {
|
||||
|
||||
|
||||
@@ -635,6 +641,9 @@ void *te_thread2(void *param) {
|
||||
|
||||
PHY_VARS_eNB *eNB = ((te_params *)param)->eNB;
|
||||
eNB_proc_t *proc = &eNB->proc;
|
||||
|
||||
wait_sync("te_thread2");
|
||||
|
||||
while (!oai_exit) {
|
||||
|
||||
|
||||
|
||||
@@ -420,6 +420,7 @@ void *td_thread(void *param) {
|
||||
thread_top_init("td_thread",1,200000,250000,500000);
|
||||
pthread_setname_np( pthread_self(),"td processing");
|
||||
LOG_I(PHY,"thread td created id=%ld\n", syscall(__NR_gettid));
|
||||
wait_sync("td_thread");
|
||||
|
||||
while (!oai_exit) {
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ static void *feptx_thread(void *param) {
|
||||
LOG_I(PHY,"thread feptx created id=%ld\n", syscall(__NR_gettid));
|
||||
//CPU_SET(6, &cpuset);
|
||||
//pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
|
||||
|
||||
wait_sync("feptx_thread");
|
||||
|
||||
|
||||
|
||||
@@ -445,6 +445,7 @@ static void *fep_thread(void *param) {
|
||||
CPU_ZERO(&cpuset);
|
||||
//CPU_SET(2, &cpuset);
|
||||
//pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
|
||||
wait_sync("fep_thread");
|
||||
|
||||
while (!oai_exit) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user