1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00
Files
unleashed-firmware/lib/toolbox/run_parallel.h

13 lines
413 B
C
Raw Normal View History

2025-02-13 20:20:25 +03:00
#pragma once
#include <core/thread.h>
/**
* @brief Run function in thread, then automatically clean up thread.
*
* @param[in] callback pointer to a function to be executed in parallel
* @param[in] context pointer to a user-specified object (will be passed to the callback)
* @param[in] stack_size stack size in bytes
*/
void run_parallel(FuriThreadCallback callback, void* context, uint32_t stack_size);