Skip to content

Commit 28874df

Browse files
authored
Addresses #880
1 parent f3c4be2 commit 28874df

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 encorraged 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)