Movatterモバイル変換


[0]ホーム

URL:


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

Commitdd5abb6

Browse files
authored
Scheduler: defaults stack to default OS value
*Fixes#880
1 parentea69a27 commitdd5abb6

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
typedefvoid (*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
classSchedulerClass {
3133
public:
3234
SchedulerClass();
33-
voidstartLoop(SchedulerTask task,uint32_t stackSize =1024);
34-
voidstart(SchedulerTask task,uint32_t stackSize =1024);
35-
voidstart(SchedulerParametricTask task,void *data,uint32_t stackSize =1024);
35+
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);
3638

3739
voidyield() { ::yield(); };
3840
private:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp