Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Fork of mbed-rtos by
Diff: rtos/Thread.h
- Revision:
- 84:143955ffb790
- Parent:
- 76:85a52b7ef44b
- Child:
- 108:bdd541595fc5
diff -r 5c72830f2d48 -r 143955ffb790 rtos/Thread.h --- a/rtos/Thread.h Tue Jun 16 07:45:29 2015 +0100 +++ b/rtos/Thread.h Wed Jun 17 10:00:10 2015 +0100 @@ -88,6 +88,26 @@ @return the State of this Thread */ State get_state(); + + /** Get the total stack memory size for this Thread + @return the total stack memory size in bytes + */ + uint32_t stack_size(); + + /** Get the currently unused stack memory for this Thread + @return the currently unused stack memory in bytes + */ + uint32_t free_stack(); + + /** Get the currently used stack memory for this Thread + @return the currently used stack memory in bytes + */ + uint32_t used_stack(); + + /** Get the maximum stack memory usage to date for this Thread + @return the maximum stack memory usage to date in bytes + */ + uint32_t max_stack(); /** Wait for one or more Signal Flags to become signaled for the current RUNNING thread. @param signals wait until all specified signal flags set or 0 for any single signal flag.