comparison packages/kernel/current/tests/stress_threads.c @ 22:53104bbd5f99 ecos-sw-1999-07-09

Merge from eCos master repository on 1999-07-09-05:47:06-BST
author jlarmour
date Fri, 09 Jul 1999 07:15:07 +0000
parents d3fbcdfa1b2f
children 306eee292492
comparison
equal deleted inserted replaced
21:629833dcbe40 22:53104bbd5f99
77 /* if TIME_LIMIT is defined, it represents the number of seconds this 77 /* if TIME_LIMIT is defined, it represents the number of seconds this
78 test should last; if it is undefined the test will go forever */ 78 test should last; if it is undefined the test will go forever */
79 #define DEATH_TIME_LIMIT 20 79 #define DEATH_TIME_LIMIT 20
80 /* #undef DEATH_TIME_LIMIT */ 80 /* #undef DEATH_TIME_LIMIT */
81 81
82 #define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_TYPICAL) 82 // STACK_SIZE is typical +2kB for printf family calls which use big
83 // auto variables.
84 #define STACK_SIZE (2*1024 + CYGNUM_HAL_STACK_SIZE_TYPICAL)
83 #define STACK_SIZE2 (8*1024 + CYGNUM_HAL_STACK_SIZE_TYPICAL) 85 #define STACK_SIZE2 (8*1024 + CYGNUM_HAL_STACK_SIZE_TYPICAL)
84 86
85 /* Allocate priorities in this order. This ensures that handlers 87 /* Allocate priorities in this order. This ensures that handlers
86 (which are the ones using the CPU) get enough CPU time to actually 88 (which are the ones using the CPU) get enough CPU time to actually
87 complete their tasks. */ 89 complete their tasks. */
183 185
184 /* handle and alarm for the report alarm */ 186 /* handle and alarm for the report alarm */
185 cyg_handle_t report_alarmH, counterH, system_clockH; 187 cyg_handle_t report_alarmH, counterH, system_clockH;
186 cyg_alarm report_alarm; 188 cyg_alarm report_alarm;
187 189
188 /* we install our own startup routine which sets up threads */ 190 /* main launches all the threads of the test */
189 void cyg_user_start(void) 191 int
192 main(void)
190 { 193 {
191 int i; 194 int i;
192 195
193 CYG_TEST_INIT(); 196 CYG_TEST_INIT();
194 CYG_TEST_INFO("# Entering stress's cyg_user_start() function"); 197 CYG_TEST_INFO("# Entering stress's cyg_user_start() function");