libxr 1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
libxr_system.hpp
1#pragma once
2
3#include <pthread.h>
4#include <semaphore.h>
5
6#include <cstdint>
7#include <webots/Robot.hpp>
8
13extern uint64_t _libxr_webots_time_count; // NOLINT
14
19extern webots::Robot *_libxr_webots_robot_handle; // NOLINT
20
21namespace LibXR
22{
23
29
35
41
47typedef struct
48{
49 pthread_mutex_t mutex;
50 pthread_cond_t cond;
51} condition_var_handle;
52
66void PlatformInit(webots::Robot *robot); // NOLINT
67
68} // namespace LibXR
LibXR Color Control Library / LibXR终端颜色控制库
SemaphoreHandle_t libxr_semaphore_handle
信号量句柄类型定义 Semaphore handle type definition
TaskHandle_t libxr_thread_handle
线程句柄类型定义 Thread handle type definition
constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值
SemaphoreHandle_t libxr_mutex_handle
互斥锁句柄类型定义 Mutex handle type definition
void PlatformInit()
平台初始化函数 Platform initialization function