examples/ostest can be executed in a loop

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@763 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-06-01 17:50:07 +00:00
parent a9b64a7469
commit e8339c2aba
10 changed files with 100 additions and 67 deletions
+5 -1
View File
@@ -20,7 +20,11 @@ examples/ostest
The behavior of the ostest can be modified with the following
settings in the configs/<board-name>/defconfig file:
* CONFIG_OSTEST_STACKSIZE
* CONFIG_EXAMPLES_OSTEST_LOOPS
Used to control the number of executions of the test. If
undefined, the test executes one time. If defined to be
zero, the test runs forever.
* CONFIG_EXAMPLES_OSTEST_STACKSIZE
Used to create the ostest task. Default is 8192.
examples/nsh
+2 -1
View File
@@ -53,7 +53,7 @@ static void *barrier_func(void *parameter)
usleep(500*1000);
#endif
/* Take the semaphore */
/* Wait at the barrier until all threads are synchronized. */
printf("barrier_func: Thread %d calling pthread_barrier_wait()\n", id);
status = pthread_barrier_wait(&barrier);
@@ -99,6 +99,7 @@ void barrier_test(void)
{
printf("barrier_test: pthread_barrierattr_init failed, status=%d\n", status);
}
/* Create the barrier */
status = pthread_barrierattr_init(&barrierattr);
+79 -62
View File
File diff suppressed because it is too large Load Diff