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.
Fork of mbed-os-example-mbed5-blinky by
Revision 68:3701a2e4ec3d, committed 2018-05-18
- 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");
}
};
