16#include "modules/core/threads_arch.h"
#define THREADS_ATTRIBUTES
int pprz_thread_create(pprz_thread_t *thread, size_t size, const char *name, uint8_t prio, void(*func)(void *), void *arg) THREADS_ATTRIBUTES
Creates a new thread whose stack is dynamically allocated.
int pprz_mtx_trylock(pprz_mutex_t *mtx)
Performs a nonblocking lock on the mutex.
int pprz_thread_tryjoin(pprz_thread_t *thread, void **retval) THREADS_ATTRIBUTES
Performs a nonblocking join with the thread.
int pprz_mtx_unlock(pprz_mutex_t *mtx)
void pprz_bsem_init(pprz_bsem_t *bsem, bool taken)
int pprz_mtx_init(pprz_mutex_t *mtx)
void pprz_thread_exit(void *retval) THREADS_ATTRIBUTES
Exit the current thread.
int pprz_mtx_lock(pprz_mutex_t *mtx)
void pprz_bsem_signal(pprz_bsem_t *bsem)
int pprz_thread_join(pprz_thread_t *thread, void **retval) THREADS_ATTRIBUTES
Wait for the thread to terminate.
void pprz_bsem_wait(pprz_bsem_t *bsem)
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.