EventQueue break_dispatch test
Fork of mbed-os-example-mbed5-blinky by
Diff: main.cpp
- Revision:
- 68:3701a2e4ec3d
- Parent:
- 67:b82d86fdf0ae
--- 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");
}
};
