1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 12:51:22 +04:00
* Cli: top command to replace ps. Furi: ThreadList and thread enumeration routine.
* Sync API Symbols
* Cli: cleanup top output, add memory section. Furi: thread enumeration code cleanup. Fix doxygen and make pvs happy.
* Furi: iterator in thread_list instead of M_EACH, fix memory leak
* Update documentation
* Cli: customizable refres interval for top command
* Furi: add consistentency into float declaration in thread list
* FreeRTOSConfig: remove invalid comment

Co-authored-by: Sergei Gavrilov <who.just.the.doctor@gmail.com>
This commit is contained in:
あく
2024-06-13 18:07:13 +01:00
committed by GitHub
parent 5a8a13639b
commit ca8517a1b0
10 changed files with 336 additions and 60 deletions

View File

@@ -46,6 +46,9 @@ typedef enum {
*/
typedef struct FuriThread FuriThread;
/** FuriThreadList type */
typedef struct FuriThreadList FuriThreadList;
/**
* @brief Unique thread identifier type (used by the OS kernel).
*/
@@ -379,13 +382,13 @@ uint32_t furi_thread_flags_get(void);
uint32_t furi_thread_flags_wait(uint32_t flags, uint32_t options, uint32_t timeout);
/**
* @brief Enumerate all threads.
*
* @param[out] thread_array pointer to the output array (must be properly allocated)
* @param[in] array_item_count output array capacity in elements (NOT bytes)
* @return total thread count (array_item_count or less)
* @brief Enumerate all threads.
*
* @param[out] thread_list pointer to the FuriThreadList container
*
* @return true on success, false otherwise
*/
uint32_t furi_thread_enumerate(FuriThreadId* thread_array, uint32_t array_item_count);
bool furi_thread_enumerate(FuriThreadList* thread_list);
/**
* @brief Get the name of a thread based on its unique identifier.