mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 15:54:57 +08:00
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:
+5
-1
@@ -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
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user