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

MbedClient.cpp - invalid osPriority? and thread name #996

Open
megacct opened this issue Nov 10, 2024 · 0 comments
Open

MbedClient.cpp - invalid osPriority? and thread name #996

megacct opened this issue Nov 10, 2024 · 0 comments

Comments

@megacct
Copy link

megacct commented Nov 10, 2024

reader_th = new rtos::Thread(osPriorityNormal - 2);
This appears to always give priority normal, which is good as any other priority seems to cause a hang. It would also be nice to have the thread named. If changed to:
reader_th = new rtos::Thread(osPriorityNormal - 2, OS_STACK_SIZE, nullptr, "readSocket");
then a compile error is returned for the priority.
I would suggest this should be changed to:
reader_th = new rtos::Thread(osPriorityNormal, OS_STACK_SIZE, nullptr, "readSocket");

@megacct megacct changed the title MbedClient.cpp - invalid osPriority and thread name MbedClient.cpp - invalid osPriority? and thread name Nov 10, 2024
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

1 participant