Skip to content
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

Start thread from another thread run function not working #30

Closed
jhonToni opened this issue Apr 7, 2019 · 1 comment
Closed

Start thread from another thread run function not working #30

jhonToni opened this issue Apr 7, 2019 · 1 comment

Comments

@jhonToni
Copy link

jhonToni commented Apr 7, 2019

How can I run a thread from another thread ?

@michaelbecker
Copy link
Owner

michaelbecker commented Apr 8, 2019

There's an example at:
https://github.com/michaelbecker/freertos-addons/blob/master/Linux/Demo/Linux_g%2B%2B_dynamic_tasks/main.cpp

You create a Thread object, then call it's Start() method. Or you can call Start() from the ctor, if you know what you're doing. See: https://www.linkedin.com/pulse/apples-kumquats-perils-multi-threaded-polymorphism-michael-becker/

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

No branches or pull requests

2 participants