Skip to content

Commit 257e997

Browse files
committed
#3 Implemented ESPRESSIO_THREAD_GARBAGE_COLLECTOR_STACK_SIZE for ThreadGarbageCollector
1 parent 98592cc commit 257e997

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ESPressio_ThreadGarbageCollector.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
#include "ESPressio_Thread.hpp"
44
#include "ESPressio_ThreadManager.hpp"
55

6+
#ifndef ESPRESSIO_THREAD_GARBAGE_COLLECTOR_STACK_SIZE
7+
#define ESPRESSIO_THREAD_GARBAGE_COLLECTOR_STACK_SIZE 2000 // You are encouraged to determine the appropriate stack size for your application, and define it in your platformio.ini file.
8+
#endif
9+
610
namespace ESPressio {
711

812
class ThreadGarbageCollector : Thread {
@@ -12,7 +16,7 @@ namespace ESPressio {
1216
protected:
1317
// Constructor
1418
ThreadGarbageCollector() : Thread() {
15-
// SetStackSize(2000);
19+
SetStackSize(ESPRESSIO_THREAD_GARBAGE_COLLECTOR_STACK_SIZE);
1620
Initialize();
1721
Start();
1822
}

0 commit comments

Comments
 (0)