|  | Paparazzi UAS v7.0_unstable
    Paparazzi is a free software Unmanned Aircraft System. | 
 Include dependency graph for threads_arch.c:
 Include dependency graph for threads_arch.c:Go to the source code of this file.
| Functions | |
| int | pprz_mtx_init (pprz_mutex_t *mtx) | 
| int | pprz_mtx_lock (pprz_mutex_t *mtx) | 
| 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) | 
| void | pprz_bsem_wait (pprz_bsem_t *bsem) | 
| int | pprz_bsem_wait_timeout (pprz_bsem_t *bsem, float timeout) | 
| Wait on semaphore no more than timeout. | |
| void | pprz_bsem_signal (pprz_bsem_t *bsem) | 
| 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. | |
| void | pprz_thread_exit (void *retval) | 
| Exit the current thread. | |
| int | pprz_thread_join (pprz_thread_t *thread, void **retval) | 
| Wait for the thread to terminate. | |
| int | pprz_thread_tryjoin (pprz_thread_t *thread, void **retval) | 
| Performs a nonblocking join with the thread. | |
| void pprz_bsem_init | ( | pprz_bsem_t * | bsem, | 
| bool | taken | ||
| ) | 
Definition at line 39 of file threads_arch.c.
References pprzBSem::bsem, bsem, and foo.
Referenced by amt22_init(), humid_sht_init_i2c(), i2c_chibios_submit(), i2c_linux_submit(), spi_submit(), thd_test_init(), and uavcanInitIface().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void pprz_bsem_signal | ( | pprz_bsem_t * | bsem | ) | 
Definition at line 57 of file threads_arch.c.
References pprzBSem::bsem, bsem, and foo.
Referenced by amt22_periodic(), handle_spi_thd(), humid_sht_thd(), i2c_thread(), thd_test_periodic(), and uavcan_broadcast().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void pprz_bsem_wait | ( | pprz_bsem_t * | bsem | ) | 
Definition at line 43 of file threads_arch.c.
References pprzBSem::bsem, bsem, and foo.
Referenced by amt22_thd(), test_thd(), and uavcan_tx().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_bsem_wait_timeout | ( | pprz_bsem_t * | bsem, | 
| float | timeout | ||
| ) | 
Wait on semaphore no more than timeout.
| timeout | in seconds | 
Definition at line 47 of file threads_arch.c.
References pprzBSem::bsem, bsem, foo, and timeout.
Referenced by humid_sht_periodic_i2c(), i2c_blocking_submit(), and spi_blocking_transceive().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_mtx_init | ( | pprz_mutex_t * | mtx | ) | 
Definition at line 18 of file threads_arch.c.
References foo, pprzMutex::mtx, and mtx.
Referenced by amt22_init(), copilot_init(), gec_transport_init(), slcan_init(), syslink_dl_init(), thd_test_init(), and uavcanInitIface().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_mtx_lock | ( | pprz_mutex_t * | mtx | ) | 
Definition at line 23 of file threads_arch.c.
References foo, pprzMutex::mtx, and mtx.
Referenced by amt22_get_position(), amt22_get_turns(), amt22_read(), can_frame_cb(), copilot_parse_cam_payload_dl(), copilot_parse_cam_snapshot_dl(), copilot_parse_copilot_status_dl(), copilot_periodic(), handle_raw(), slcan_can_rx_cb(), syslink_check_free_space(), syslink_send_message(), test_thd(), uavcan_broadcast(), and uavcan_tx().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_mtx_trylock | ( | pprz_mutex_t * | mtx | ) | 
Performs a nonblocking lock on the mutex.
Definition at line 28 of file threads_arch.c.
References foo, pprzMutex::mtx, and mtx.
Referenced by thd_test_periodic(), and thd_test_syracuse_restart().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_mtx_unlock | ( | pprz_mutex_t * | mtx | ) | 
Definition at line 32 of file threads_arch.c.
References foo, pprzMutex::mtx, and mtx.
Referenced by amt22_get_position(), amt22_get_turns(), amt22_read(), can_frame_cb(), copilot_parse_cam_payload_dl(), copilot_parse_cam_snapshot_dl(), copilot_parse_copilot_status_dl(), copilot_periodic(), handle_raw(), slcan_can_rx_cb(), test_thd(), thd_test_periodic(), thd_test_syracuse_restart(), uavcan_broadcast(), and uavcan_tx().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_thread_create | ( | pprz_thread_t * | thread, | 
| size_t | size, | ||
| const char * | name, | ||
| uint8_t | prio, | ||
| void(*)(void *) | func, | ||
| void * | arg | ||
| ) | 
Creates a new thread whose stack is dynamically allocated.
| [in] | size | size of the stack. Unused on linux at the moment. | 
| [in] | prio | the priority level for the new thread. Unused on linux at the moment. NORMALPRIO | 
| [in] | pf | the thread function | 
| [in] | arg | an argument passed to the thread function. It can be NULL. | 
| [out] | thread | pointer to a pprz_thread_t that will be writen with the handle to the thread | 
@api
Definition at line 62 of file threads_arch.c.
References foo.
Referenced by amt22_init(), humid_sht_init_i2c(), thd_test_init(), thd_test_syracuse_restart(), and uavcanInitIface().
 Here is the caller graph for this function:
 Here is the caller graph for this function:Exit the current thread.
| [out] | retval | The thread's return value | 
Definition at line 70 of file threads_arch.c.
References foo.
Referenced by test_thd().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_thread_join | ( | pprz_thread_t * | thread, | 
| void ** | retval | ||
| ) | 
Wait for the thread to terminate.
| [in] | thread | The thread to be joined | 
| [out] | retval | The thread's return value will be written to the variable pointed by retval | 
Definition at line 75 of file threads_arch.c.
References foo.
Referenced by pprz_thread_tryjoin().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| int pprz_thread_tryjoin | ( | pprz_thread_t * | thread, | 
| void ** | retval | ||
| ) | 
Performs a nonblocking join with the thread.
| [in] | thread | The thread to be joined | 
| [out] | retval | The thread's return value will be written to the variable pointed by retval. must not be used if this fuction did not returned 0. | 
Definition at line 81 of file threads_arch.c.
References foo, and pprz_thread_join().
Referenced by thd_test_periodic().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function: