Initialize nof_coworkers

This commit is contained in:
Ismael Gomez 2018-07-04 19:28:56 +02:00
parent 9b9a56e543
commit 1248a4224a
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace srsue {
phy::phy() : workers_pool(MAX_WORKERS),
workers(MAX_WORKERS),
workers_common(phch_recv::MUTEX_X_WORKER*MAX_WORKERS)
workers_common(phch_recv::MUTEX_X_WORKER*MAX_WORKERS),nof_coworkers(0)
{
}
@ -169,6 +169,7 @@ void phy::run_thread() {
}
for (uint32_t i=0;i<nof_coworkers;i++) {
printf("setting coworker for %d/%d\n", i, nof_coworkers);
workers[i].enable_pdsch_coworker();
}