int LpelStart(lpel_config_t *cfg) { int res; #ifndef USE_SCC /* check the config */ res = LpelHwLocCheckConfig(cfg); if (res) return res; LpelHwLocStart(cfg); #endif /*USE_SCC*/ /* initialise workers */ LpelWorkersInit( _lpel_global_config.num_workers); LpelWorkersSpawn(); return 0; }
int LpelStart(lpel_config_t *cfg) { int res; /* store a local copy of cfg */ _lpel_global_config = *cfg; /* check the config */ res = LpelHwLocCheckConfig(cfg); if (res) return res; LpelHwLocStart(cfg); /* initialise workers */ LpelWorkersInit(&_lpel_global_config); LpelWorkersSpawn(); return 0; }