MUTEX and its use in MBED MUTEX LOCK and Unlock mechanism

Files at this revision

API Documentation at this revision

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
--- 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 ....