Mercurial > ecos
comparison packages/kernel/current/tests/stress_threads.c @ 191:678094f34118
Merge from eCos master repository on 2001-10-19-06:43:02-BST
| author | jlarmour |
|---|---|
| date | Fri, 19 Oct 2001 07:02:26 +0000 |
| parents | ac086aa3217e |
| children | e0c0827131d1 |
comparison
equal
deleted
inserted
replaced
| 190:7e4874fa4fbe | 191:678094f34118 |
|---|---|
| 490 /* start a new handler */ | 490 /* start a new handler */ |
| 491 void start_handler(void) | 491 void start_handler(void) |
| 492 { | 492 { |
| 493 int prio; | 493 int prio; |
| 494 char* name; | 494 char* name; |
| 495 int handler_slot; | 495 int handler_slot = 0; |
| 496 int found = 0; | 496 int found = 0; |
| 497 | 497 |
| 498 while (!found) { | 498 while (!found) { |
| 499 cyg_mutex_lock(&handler_slot_lock); { | 499 cyg_mutex_lock(&handler_slot_lock); { |
| 500 for (handler_slot = 0; handler_slot < MAX_HANDLERS;++handler_slot){ | 500 for (handler_slot = 0; handler_slot < MAX_HANDLERS;++handler_slot){ |
