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.
Diff: rtos/Thread.cpp
- Revision:
- 107:bdd541595fc5
- Parent:
- 90:21b438192b0f
- Child:
- 112:53ace74b190c
--- a/rtos/Thread.cpp Wed Mar 02 11:30:15 2016 +0000
+++ b/rtos/Thread.cpp Tue Mar 15 09:00:39 2016 +0000
@@ -22,6 +22,7 @@
#include "Thread.h"
#include "mbed_error.h"
+#include "rtos_idle.h"
namespace rtos {
@@ -132,6 +133,10 @@
return osThreadGetId();
}
+void Thread::attach_idle_hook(void (*fptr)(void)) {
+ rtos_attach_idle_hook(fptr);
+}
+
Thread::~Thread() {
terminate();
if (_dynamic_stack) {
