Exemple #1
0
/* we create this thread to give a thread context to initializaiton to avoid 
   any scheduling realted issue. */
void init_thread_main(cyg_addrword_t data)
{
    HRESULT		hResult = NO_ERROR;
 
    hResult = mainInitialize();	
    
    if (hResult != NO_ERROR)
	{
		sysDebugPrintf("Could not initialize application\n");
	}
    
#ifdef _1394CORE
    lalInitialize1394Finish();
#endif //_1394CORE
}
Exemple #2
0
int run_main(int argc, const char **argv)
{
    int _retval;
    /* Generate and populate the path_to_component. */
    char path_to_component[(PATH_MAX*2)+1];
    separatePathName(argv[0], path_to_component, (PATH_MAX*2)+1);
    __MCC_main_component_data.path_to_component = path_to_component; 
    if (!mainInitialize()) {
        return -1;
    }
    _retval = mclMain(_mcr_inst, argc, argv, "main", 0);
    if (_retval == 0 /* no error */) mclWaitForFiguresToDie(NULL);
    mainTerminate();
    mclTerminateApplication();
    return _retval;
}