-
Notifications
You must be signed in to change notification settings - Fork 14
Multithreading Issues and Memory Leaks #6
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
Conversation
[1] Ensuring that resources (variables, threads, etc.) are created only at the point when needed. [2] Ensuring that both threads cooperate better and in writing output to the Serial Terminal. [3] Resolving memory leaks. [4] Minor cleanups for code readability.
|
@nuertey - This PR will need a rebase and minor formatting change. |
|
@deepikabhavnani , I reverted all those formatting changes as asked and pushed it to my fork. Let me know if I missed any or went through the wrong process to do so. |
|
Okay @deepikabhavnani, the formatting should be all taken care of now per the coding standard. |
|
Some conflicts which should be resolved |
|
Essentially you want to remove the stdio_mutex then? Note that without the mutex, the output being issued by both threads becomes garbled on the serial terminal. That was one of the original fixes that called for the mutex. Do you want me to try removing that and then testing again to see if perhaps it is better now, what with all the other changes? |
No mutex is good. In order to resolve conflicts you will have to Will resolve into |
|
Thanks. I hope I got it now. I am fairly new to the github workflow so still learning some of the process as I encounter them. |
Merge is another way of resolving conflicts. In mbed-os repo merges are not allowed and we suggest to do |
Changelog :
[1] Ensuring that resources (variables, threads, etc.) are created only at the point when needed.
[2] Ensuring that both threads cooperate better and in writing output to the Serial Terminal.
[3] Resolving memory leaks.
[4] Minor cleanups for code readability.