Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 2:0cf7e435eeb8, committed 2020-07-26
- Comitter:
- radhey04ec
- Date:
- Sun Jul 26 11:00:53 2020 +0000
- Parent:
- 1:605f5624661e
- Commit message:
- FINAL
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 605f5624661e -r 0cf7e435eeb8 main.cpp --- a/main.cpp Sun Jul 26 10:59:21 2020 +0000 +++ b/main.cpp Sun Jul 26 11:00:53 2020 +0000 @@ -31,8 +31,7 @@ printf("This Thread lock the code %s: %d\n\r", name, state); wait(0.5); //sleep - printf("Thread cross & unlock %s: %d\n\r", name, state); //OUTSIDE CODE BLOCK --------- - + printf("Thread cross & unlock %s: %d\n\r", name, state); //OUTSIDE CODE BLOCK --------- M_LOCK.unlock(); //After completing task unlock the code ------------- UNLOCK THE BLOCK //DO NOT WRITE any print statement after unlock() it create missunderstanding ....