EventQueue break_dispatch test

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Files at this revision

API Documentation at this revision

Comitter:
mapellil
Date:
Fri May 18 06:46:38 2018 +0000
Parent:
67:b82d86fdf0ae
Commit message:
added th join

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed May 16 12:45:17 2018 +0000
+++ b/main.cpp	Fri May 18 06:46:38 2018 +0000
@@ -24,9 +24,12 @@
 
 }
 void stop() {
-    printf ("Stopping ...\n\r");  
+    printf ("Stopping th...\n\r");  
    _cnt=0;    
    _ISRqueue.break_dispatch();
+   _ISRthread.terminate();
+   _ISRthread.join();
+   printf ("... th joined\n\r"); 
 }
 };