VOID_TASK_1(init_hre, hre_context_t, context) { if (LACE_WORKER_ID != 0) { HREprocessSet(context); HREglobalSet(context); } }
static void* thread_main(void*arg){ hre_context_t context=(hre_context_t)arg; HREprocessSet(context); HREglobalSet(context); set_label("%s(%2d/%2d)",HREappName(),HREme(context),HREpeers(context)); Debug("calling main..."); int argc=1; char *argv[2]={strdup(HREpathName()),NULL}; main(argc,argv); return NULL; }
static void init_hre(hre_context_t context) { HREprocessSet(context); HREglobalSet(context); }