We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentea69a27 commitdd5abb6Copy full SHA for dd5abb6
libraries/Scheduler/src/Scheduler.h
@@ -27,12 +27,14 @@ extern "C" {
27
typedefvoid (*SchedulerParametricTask)(void *);
28
}
29
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.
32
classSchedulerClass {
33
public:
34
SchedulerClass();
-voidstartLoop(SchedulerTask task,uint32_t stackSize =1024);
-voidstart(SchedulerTask task,uint32_t stackSize =1024);
35
-voidstart(SchedulerParametricTask task,void *data,uint32_t stackSize =1024);
+voidstartLoop(SchedulerTask task,uint32_t stackSize =OS_STACK_SIZE);
36
+voidstart(SchedulerTask task,uint32_t stackSize =OS_STACK_SIZE);
37
+voidstart(SchedulerParametricTask task,void *data,uint32_t stackSize =OS_STACK_SIZE);
38
39
voidyield() { ::yield(); };
40
private: