mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-13 05:06:30 +04:00
add missing api [ci skip]
This commit is contained in:
12
lib/toolbox/run_parallel.h
Normal file
12
lib/toolbox/run_parallel.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user