comparison packages/kernel/current/tests/stress_threads.c @ 40:a3cc6665b684 ecos-sw-1999-10-01

Merge from eCos master repository on 1999-10-01-07:47:04-BST
author jlarmour
date Fri, 01 Oct 1999 13:25:47 +0000
parents e7ba79f6d3a8
children 7a6ac9edc838
comparison
equal deleted inserted replaced
39:542bd7fab9d0 40:a3cc6665b684
232 main(void) 232 main(void)
233 { 233 {
234 int i; 234 int i;
235 235
236 CYG_TEST_INIT(); 236 CYG_TEST_INIT();
237 CYG_TEST_INFO("# Entering stress's cyg_user_start() function"); 237 CYG_TEST_INFO("Stress threads test compiled on " __DATE__);
238 238
239 cyg_mutex_init(&client_request_lock); 239 cyg_mutex_init(&client_request_lock);
240 cyg_mutex_init(&statistics_print_lock); 240 cyg_mutex_init(&statistics_print_lock);
241 cyg_mutex_init(&free_handler_lock); 241 cyg_mutex_init(&free_handler_lock);
242 242
687 return; 687 return;
688 688
689 // After the first day, only dump stat once per day. Do print 689 // After the first day, only dump stat once per day. Do print
690 // a . on the hour though. 690 // a . on the hour though.
691 if ((minutes > MINS_DAY) && ((minutes % MINS_DAY) != 0)) { 691 if ((minutes > MINS_DAY) && ((minutes % MINS_DAY) != 0)) {
692 if ((minutes % MINS_HOUR) == 0) 692 if ((minutes % MINS_HOUR) == 0) {
693 printf("."); 693 printf(".");
694 fflush(stdout);
695 }
694 return; 696 return;
695 } 697 }
696 698
697 // After the first hour of the first day, only dump stat once 699 // After the first hour of the first day, only dump stat once
698 // per hour. Do print . each minute though. 700 // per hour. Do print . each minute though.
699 if ((minutes < MINS_DAY) && (minutes > MINS_HOUR) 701 if ((minutes < MINS_DAY) && (minutes > MINS_HOUR)
700 && ((minutes % MINS_HOUR) != 0)) { 702 && ((minutes % MINS_HOUR) != 0)) {
701 printf("."); 703 printf(".");
704 fflush(stdout);
702 return; 705 return;
703 } 706 }
704 } 707 }
705 708
706 printf("\nState dump %d (%d hours, %d minutes) [numbers >>%d]\n", 709 printf("\nState dump %d (%d hours, %d minutes) [numbers >>%d]\n",