Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion testing/ostest/wqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#include <nuttx/wqueue.h>

#include "ostest.h"

#ifdef CONFIG_SCHED_WORKQUEUE

/****************************************************************************
Expand Down Expand Up @@ -64,13 +66,15 @@ 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);
}

static void count_worker(FAR void *arg)
{
FAR sem_t *sem = arg;

sem_post(sem);
}

Expand Down Expand Up @@ -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);
Expand Down
Loading