Skip to content

Commit dd5abb6

Browse files
authoredMay 20, 2024
Scheduler: defaults stack to default OS value
* Fixes #880
1 parent ea69a27 commit dd5abb6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎libraries/Scheduler/src/Scheduler.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ extern "C" {
2727
typedef void (*SchedulerParametricTask)(void *);
2828
}
2929

30+
// This class exists for only backwards compatibility with arduino-libraries/Scheduler.
31+
// You are encouraged to use mbed::Thread directly rather than using this.
3032
class SchedulerClass {
3133
public:
3234
SchedulerClass();
33-
void startLoop(SchedulerTask task, uint32_t stackSize = 1024);
34-
void start(SchedulerTask task, uint32_t stackSize = 1024);
35-
void start(SchedulerParametricTask task, void *data, uint32_t stackSize = 1024);
35+
void startLoop(SchedulerTask task, uint32_t stackSize = OS_STACK_SIZE);
36+
void start(SchedulerTask task, uint32_t stackSize = OS_STACK_SIZE);
37+
void start(SchedulerParametricTask task, void *data, uint32_t stackSize = OS_STACK_SIZE);
3638

3739
void yield() { ::yield(); };
3840
private:

0 commit comments

Comments
 (0)