void _CleanUpMSL() { __begin_critical_region(atexit_funcs_access); while (atexit_curr_func > 0) (*atexit_funcs[--atexit_curr_func])(); __end_critical_region(atexit_funcs_access); if (__stdio_exit) { (*__stdio_exit)(); __stdio_exit = 0; } __destroy_global_chain(); __kill_critical_regions(); if (__console_exit) { (*__console_exit)(); __console_exit = 0; } }
/* * Simple exit routine ... */ void _ewl_exit(int status) { #pragma unused(status) __destroy_global_chain(); _ExitProcess(); }
void _exit(int status) { #if MQX_ENABLE_CPP || BSPCFG_ENABLE_CPP /* Semi-normal CodeWarrior shutdown sequence */ __destroy_global_chain(); __fini_cpp(); #endif /* MQX_ENABLE_CPP || BSPCFG_ENABLE_CPP */ /* ** Change for whatever is appropriate for your board ** and application. Perhaps a software reset or ** some kind of trap/call to the kernel soft re-boot. */ while (TRUE) { } }
/*FUNCTION*------------------------------------------------------------------- * * Function Name : __exit * Returned Value : none * Comments : * Final exit function * *END*----------------------------------------------------------------------*/ int __exit(int status) { // Semi-normal Codewarrior shutdown sequence #if BSPCFG_ENABLE_CPP __destroy_global_chain(); __fini_cpp(); #endif /* ** Change for whatever is appropriate for your board ** and application. Perhaps a software reset or ** some kind of trap/call to the kernel soft re-boot. */ _ExitProcess(); return(0); }
int exit(int status) { /* Semi-normal CodeWarrior shutdown sequence */ #if BSPCFG_ENABLE_CPP __destroy_global_chain(); __cpp_fini(); #endif /* ** Change for whatever is appropriate for your board ** and application. Perhaps a software reset or ** some kind of trap/call to the kernel soft re-boot. */ for(;;) { volatile uint_8 a = 0; } return(0); }
void exit( int status ) { while ( atexit_curr_func > 0 ) { (*atexit_funcs[ --atexit_curr_func ])(); } __destroy_global_chain(); if ( __stdio_exit ) { (*__stdio_exit)(); __stdio_exit = 0; } _exit( status ); }
void exit(int status) #endif { if (!__aborting) { __begin_critical_region(atexit_funcs_access); while (atexit_curr_func > 0) (*atexit_funcs[--atexit_curr_func])(); #if (__dest_os == __win32_os) && (STOP_PROGRAM_BEFORE_EXIT==1) if(GetFileType(GetStdHandle(STD_OUTPUT_HANDLE))==FILE_TYPE_CHAR) { //printf("\n \n Press Enter to continue \n"); //fflush(stdin); //getc(stdin); } #endif __end_critical_region(atexit_funcs_access); /* 970218 bkoz need to move destroy global chain above __stdio_exit as some static objects may have destructors that flush streams */ #if !__INTEL__ #if __POWERPC__ || __CFM68K__ || (__MC68K__ && __A5__) || (__dest_os == __be_os) __destroy_global_chain(); #endif #endif if (__stdio_exit) { (*__stdio_exit)(); __stdio_exit = 0; } } __exit(status); }
void Private_Shutdown(void) { NS_PluginShutdown(); __destroy_global_chain(); }