![]() |
VectorNav C Library
|
#include "vn/error.h"#include "vn/int.h"Go to the source code of this file.
Data Structures | |
| struct | VnThread |
| Structure for working with threads. More... | |
Typedefs | |
| typedef void(* | VnThread_StartRoutine) (void *) |
| Function signature for a start routine for a thread. | |
Functions | |
| VnError | VnThread_startNew (VnThread *thread, VnThread_StartRoutine startRoutine, void *routineData) |
| Starts a new thread immediately which calls the provided start routine. More... | |
| VnError | VnThread_join (VnThread *thread) |
| Blocks the calling thread until the referenced thread finishes. More... | |
| void | VnThread_sleepSec (uint32_t numOfSecsToSleep) |
| Causes the calling thread to sleep the specified number of seconds. More... | |
| void | VnThread_sleepMs (uint32_t numOfMsToSleep) |
| Causes the calling thread to sleep the specified number of milliseconds. More... | |
| void | VnThread_sleepUs (uint32_t numOfUsToSleep) |
| Causes the calling thread to sleep the specified number of microseconds. More... | |
{COMMON_HEADER}
This header file contains structures and functions useful working with threads.
| VnError VnThread_join | ( | VnThread * | thread | ) |
Blocks the calling thread until the referenced thread finishes.
| [in] | thread | The associated VnThread. |
| void VnThread_sleepMs | ( | uint32_t | numOfMsToSleep | ) |
Causes the calling thread to sleep the specified number of milliseconds.
| [in] | numOfMsToSleep | The number of milliseconds to sleep. |
| void VnThread_sleepSec | ( | uint32_t | numOfSecsToSleep | ) |
Causes the calling thread to sleep the specified number of seconds.
| [in] | numOfSecsToSleep | The number of seconds to sleep. |
| void VnThread_sleepUs | ( | uint32_t | numOfUsToSleep | ) |
Causes the calling thread to sleep the specified number of microseconds.
| [in] | numOfUsToSleep | The number of microseconds to sleep. |
| VnError VnThread_startNew | ( | VnThread * | thread, |
| VnThread_StartRoutine | startRoutine, | ||
| void * | routineData | ||
| ) |
Starts a new thread immediately which calls the provided start routine.
| [in] | thread | Associated VnThread structure. |
| [in] | startRoutine | The routine to be called when the new thread is started. |
| [in] | routineData | Pointer to data that will be passed to the routine on the new thread. |
1.8.10