git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@439 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2008-09-23 18:04:28 +00:00
parent 0544bfe97b
commit 7fdee68e5b
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ static void dyn2_execute(void) {
tprio_t prio = chThdGetPriority(); tprio_t prio = chThdGetPriority();
/* Adding the WAs to the pool. */ /* Adding the WAs to the pool. */
for (i = 0; i < 5; i++) for (i = 0; i < MAX_THREADS; i++)
chPoolFree(&mp1, wa[i]); chPoolFree(&mp1, wa[i]);
/* Starting threads from the memory pool. */ /* Starting threads from the memory pool. */

View File

@ -42,11 +42,11 @@ static void pools1_execute(void) {
int i; int i;
/* Adding the WAs to the pool. */ /* Adding the WAs to the pool. */
for (i = 0; i < 5; i++) for (i = 0; i < MAX_THREADS; i++)
chPoolFree(&mp1, wa[i]); chPoolFree(&mp1, wa[i]);
/* Empting the pool again. */ /* Empting the pool again. */
for (i = 0; i < 5; i++) for (i = 0; i < MAX_THREADS; i++)
test_assert(chPoolAlloc(&mp1) != NULL, "pool list empty"); test_assert(chPoolAlloc(&mp1) != NULL, "pool list empty");
/* Now must be empty. */ /* Now must be empty. */