mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-07 01:06:31 +00:00
testing/ostest: use STACKSIZE for the wqueue test worker threads
Size the worker stacks with STACKSIZE like the rest of ostest. Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
parent
6be063a7fc
commit
dc3cc88758
1 changed files with 5 additions and 1 deletions
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
#include <nuttx/wqueue.h>
|
||||
|
||||
#include "ostest.h"
|
||||
|
||||
#ifdef CONFIG_SCHED_WORKQUEUE
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -64,6 +66,7 @@ static void empty_worker(FAR void *arg)
|
|||
static void sleep_worker(FAR void *arg)
|
||||
{
|
||||
FAR sem_t *sem = arg;
|
||||
|
||||
usleep(SLEEP_TIME);
|
||||
sem_post(sem);
|
||||
}
|
||||
|
|
@ -71,6 +74,7 @@ static void sleep_worker(FAR void *arg)
|
|||
static void count_worker(FAR void *arg)
|
||||
{
|
||||
FAR sem_t *sem = arg;
|
||||
|
||||
sem_post(sem);
|
||||
}
|
||||
|
||||
|
|
@ -290,7 +294,7 @@ void wqueue_test(void)
|
|||
for (i = 1; i < 3; i++)
|
||||
{
|
||||
printf("wqueue_test: test %d\n", i);
|
||||
wq = work_queue_create("test", 100, NULL, 2048, i);
|
||||
wq = work_queue_create("test", 100, NULL, STACKSIZE, i);
|
||||
DEBUGASSERT(wq != NULL);
|
||||
wqueue_priority_test(0, wq, 100);
|
||||
work_queue_free(wq);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue