diff --git a/libraries/Scheduler/src/Scheduler.h b/libraries/Scheduler/src/Scheduler.h index fc8999b42..a43b2d4e9 100644 --- a/libraries/Scheduler/src/Scheduler.h +++ b/libraries/Scheduler/src/Scheduler.h @@ -27,12 +27,14 @@ extern "C" { typedef void (*SchedulerParametricTask)(void *); } +// This class exists for only backwards compatibility with arduino-libraries/Scheduler. +// You are encouraged to use mbed::Thread directly rather than using this. class SchedulerClass { public: SchedulerClass(); - void startLoop(SchedulerTask task, uint32_t stackSize = 1024); - void start(SchedulerTask task, uint32_t stackSize = 1024); - void start(SchedulerParametricTask task, void *data, uint32_t stackSize = 1024); + void startLoop(SchedulerTask task, uint32_t stackSize = OS_STACK_SIZE); + void start(SchedulerTask task, uint32_t stackSize = OS_STACK_SIZE); + void start(SchedulerParametricTask task, void *data, uint32_t stackSize = OS_STACK_SIZE); void yield() { ::yield(); }; private: