Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dd5abb6

Browse files
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‎

Lines changed: 5 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /