Skip to content

Remove invalid thread::start example #3469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 21, 2016
Merged

Conversation

sarahmarshy
Copy link
Contributor

@sarahmarshy sarahmarshy commented Dec 19, 2016

Description

This change reflects the correct syntax for spawning a thread that will execute a local function with given parameters.

The currently provided example will not compile. Inspired by #3396.

@geky @0xc0170

Status

READY

Steps to test or reproduce

Try to compile the currently provided example to view failure.

This changes reflects the correct syntax for spawning a thread that will execute a local function with given parameters.
Copy link
Contributor

@theotherjimmy theotherjimmy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@bridadan bridadan requested a review from geky December 19, 2016 21:05
Copy link
Contributor

@geky geky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bueno!

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 20, 2016

just in case

/morph test

@@ -54,7 +54,7 @@ namespace rtos {
*
* // Spawns a thread to run blink for 5 seconds
* int main() {
* thread.start(led1, blink);
* thread.start(callback(blink, &led1));
* Thread::wait(5000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mind getting rid of the Thread:: while you're in here too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, should be wait_ms(5000) (or wait(5)).

Also line 51

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1299

All builds and test passed!

@sarahmarshy
Copy link
Contributor Author

@sg- donezo!

@bridadan bridadan mentioned this pull request Dec 20, 2016
@geky
Copy link
Contributor

geky commented Dec 20, 2016

So many check marks! But why is CI failing?

@bridadan
Copy link
Contributor

@VeliMattiLahtela The Oulu CI is failing on this PR, however this is just a documentation change. Is this a problem that is in mbed-os master right now or is this just a problem with the mbed-os-cliapp tests?

@VeliMattiLahtela
Copy link

@bridadan The scaling of our testlab has resulted on a "few" intermittent errors becoming a little more frequent. Corrective actions are ongoing, but in the meantime these issues are unavoidable. For now we can only run them again and hope for the best. Failing cases are inspected on a daily basis and re-executed if a known error causing a false fail is seen.

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 21, 2016

@VeliMattiLahtela Can we make it green please?

@tommikas
Copy link
Contributor

All green now.

We just got some changes in a couple of hours ago that should help quite a bit.

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 21, 2016

We just got some changes in a couple of hours ago that should help quite a bit.

Thank you

@0xc0170 0xc0170 merged commit eb3dc2d into ARMmbed:master Dec 21, 2016
@bridadan
Copy link
Contributor

Thanks for the support @VeliMattiLahtela and @tommikas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants