Reducing number of threads to below MAX_THREADS

This commit is contained in:
Sparchatus 2022-04-13 12:48:28 +00:00
parent 1b37ebbb13
commit 0dc8227beb

View File

@ -20,7 +20,8 @@
#include <aos/deferred.h> #include <aos/deferred.h>
#define NUM_SMALL_BUFFERS 128 #define NUM_SMALL_BUFFERS 128
#define NUM_THREADS 512 // one thread is for the main and MAX_THREADS is 256
#define NUM_THREADS (256 - 1)
static struct thread* threads[NUM_THREADS]; static struct thread* threads[NUM_THREADS];