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-rtos by
Diff: rtos/Thread.h
- Revision:
- 107:bdd541595fc5
- Parent:
- 84:143955ffb790
--- a/rtos/Thread.h Wed Mar 02 11:30:15 2016 +0000 +++ b/rtos/Thread.h Tue Mar 15 09:00:39 2016 +0000 @@ -131,6 +131,11 @@ @return thread ID for reference by other functions or NULL in case of error. */ static osThreadId gettid(); + + /** Attach a function to be called by the RTOS idle task + @param fptr pointer to the function to be called + */ + static void attach_idle_hook(void (*fptr)(void)); virtual ~Thread();