Revision a3d116e3 src/sim/cspinningthreadpool.cc

View differences:

src/sim/cspinningthreadpool.cc
206 206

  
207 207
    } while (true);
208 208
}
209

  
210 209
#undef BARRIERVALID
211 210

  
211
bool cSpinningThreadPool::isBeforeBarrier(int barrierMin, cMessage* msg) {
212
    return (barrierMin >= 0 && threadStates[barrierMin*SPACING] < *msg);
213
}
212 214

  
213 215
Register_PerRunConfigOption(CFGID_SPINNING_THREADPOOL_THREAD_POOL_SIZE, "thread-pool-size", CFG_INT, "5", "Number of worker threads");
214 216
Register_PerRunConfigOption(CFGID_SPINNING_THREADPOOL_USE_MAIN_THREAD, "use-main-thread", CFG_BOOL, "false", "Use the Main Thread as a workerthread also");

Also available in: Unified diff