| 123456789101112131415 |
- #
- # Copyright (c) 2006-2019, RT-Thread Development Team
- #
- # SPDX-License-Identifier: MIT License
- #
- # Change Logs:
- # Date Author Notes
- # 2019-06-13 SummerGift first version
- #
- import rtthread
- print(rtthread.is_preempt_thread()) # determine if code is running in a preemptible thread
- print(rtthread.current_tid() ) # current thread id
- rtthread.stacks_analyze() # show thread information
|