摘要:
1、准备 (1) Github仓库地址: https://github.com/eclipse/paho.mqtt.c https://github.com/eclipse/paho.mqtt.cpp (2) Visual Studio 2022以及CMake https://visualstudi 阅读全文
摘要:
```C++ // Integral type equal template typename std::enable_if::value, bool>::type Equal( const T& lhs, const T& rhs) { return lhs == rhs; } // Floati 阅读全文
摘要:
```C++ std::string executeShellCommand(const std::string &command) { FILE* pipe = popen(command.c_str(), "r"); if (!pipe) return "ERROR"; char buffer[ 阅读全文
摘要:
要在Linux下实现一个定时器,可以使用以下两种方法: ## 使用系统提供的定时器API Linux系统提供了一些定时器API,如setitimer、timer_create、timer_gettime等,可以使用这些API来实现定时器。以setitimer为例,可以按照以下步骤来使用: 1.定义一 阅读全文
摘要:
使用kubeadm安装k8s 阅读全文
摘要:
内存调试工具 heaptrack Valgrind uprobe + perf 阅读全文