Skip to content

Commit c4c17b7

Browse files
author
Amanda Butler
authored
Remove example from Kernel.md
Remove duplicate example, and combine the descriptions.
1 parent 9e61533 commit c4c17b7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docs/api/rtos/Kernel.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,8 @@ void send_data()
2626
2727
```
2828

29-
### attach_idle_hook() example
29+
### Kernel hooks example
3030

31-
The function `attach_idle_hook()` can be used to attach a function to be called by the RTOS idle task. The below code snippet demostrates the usage.
32-
33-
[![View Example](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-example-kernel-hooks)](https://github.com/ARMmbed/mbed-os-example-kernel-hooks/blob/master/main.cpp)
34-
35-
### attach_thread_terminate_hook() example
36-
37-
The function `attach_thread_terminate_hook()` can be used to attach a function to be called when a thread terminates.
31+
You can use the function `attach_idle_hook()` to attach a function to be called by the RTOS idle task. You can use the function `attach_thread_terminate_hook()` to attach a function to be called when a thread terminates. The below code snippet demostrates the usage of these hooks.
3832

3933
[![View Example](https://www.mbed.com/embed/?url=https://github.com/ARMmbed/mbed-os-example-kernel-hooks)](https://github.com/ARMmbed/mbed-os-example-kernel-hooks/blob/master/main.cpp)

0 commit comments

Comments
 (0)