File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 33#include " ESPressio_IThread.hpp"
44#include " ESPressio_ThreadSafe.hpp"
55
6+ ifndef ESPRESSIO_THREAD_DEFAULT_STACK_SIZE
7+ #define ESPRESSIO_THREAD_DEFAULT_STACK_SIZE 4000
8+ endif
9+
610namespace ESPressio {
711
812 namespace Threads {
@@ -22,7 +26,7 @@ namespace ESPressio {
2226 ReadWriteMutex<bool > _freeOnTerminate = ReadWriteMutex<bool >(false );
2327 ReadWriteMutex<bool > _startOnInitialize = ReadWriteMutex<bool >(true );
2428 TaskHandle_t _taskHandle = nullptr ; // SHOULD be Atomic!
25- ReadWriteMutex<uint32_t > _stackSize = ReadWriteMutex<uint32_t >(10000 );
29+ ReadWriteMutex<uint32_t > _stackSize = ReadWriteMutex<uint32_t >(ESPRESSIO_THREAD_DEFAULT_STACK_SIZE );
2630 ReadWriteMutex<UBaseType_t> _priority = ReadWriteMutex<UBaseType_t>(2 );
2731 ReadWriteMutex<BaseType_t> _coreID = ReadWriteMutex<BaseType_t>(0 );
2832
You can’t perform that action at this time.
0 commit comments