64 char err[] =
"Could not lock";
87 len = snprintf(msg,
sizeof(msg),
"Finished in %zu steps!", ret);
93 len = snprintf(msg,
sizeof(msg),
"%d",
syracuse);
int pprz_mtx_trylock(pprz_mutex_t *mtx)
Performs a nonblocking lock on the mutex.
int pprz_mtx_unlock(pprz_mutex_t *mtx)
void pprz_bsem_init(pprz_bsem_t *bsem, bool taken)
int pprz_thread_create(pprz_thread_t *thread, size_t size, const char *name, uint8_t prio, void(*pf)(void *), void *arg)
Creates a new thread whose stack is dynamically allocated.
int pprz_mtx_init(pprz_mutex_t *mtx)
int pprz_mtx_lock(pprz_mutex_t *mtx)
void pprz_bsem_signal(pprz_bsem_t *bsem)
int pprz_thread_tryjoin(pprz_thread_t *thread, void **retval)
Performs a nonblocking join with the thread.
void pprz_thread_exit(void *retval)
Exit the current thread.
void pprz_bsem_wait(pprz_bsem_t *bsem)
arch independent LED (Light Emitting Diodes) API
Periodic telemetry system header (includes downlink utility and generated code).
static void test_thd(void *)
void thd_test_periodic(void)
void thd_test_syracuse_restart(float s)
float thd_test_start_value
struct pprzBSem pprz_bsem_t
struct pprzMutex pprz_mutex_t