File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ extern "C" {
27
27
typedef void (*SchedulerParametricTask)(void *);
28
28
}
29
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.
30
32
class SchedulerClass {
31
33
public:
32
34
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 );
36
38
37
39
void yield () { ::yield (); };
38
40
private:
You can’t perform that action at this time.
0 commit comments