コード例 #1
0
ファイル: lpel_main.c プロジェクト: ra-one/lpel
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;
}
コード例 #2
0
ファイル: lpel_main.c プロジェクト: nguyenvuthiennga/lpel
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;
}