
(C++) Process and Threads
Teleger
目前从事c/c++应用程序开发工作,单片机GD/嵌入式linux;涉及的硬件有RK3328/3399/3308,以及海思系列,做过图像识别,分类;智能门禁智能家居,语音识别等等应用。
展开
-
c++ 简单多线程实例
linux 平台 #include #include #define NUM_Thread 5 using namespace std; typedef struct MThreadInfo { /* data */ int m_ID; char *data; }InfoThread; void *ThreadPrint(void* arg) { cout原创 2017-02-19 17:12:58 · 1377 阅读 · 0 评论 -
话说linux 下的pthread 内存问题 (Valgrind 检测 及定位排除)
1.我之前就简单的认为 线程 不就是些 创建, 运行,销毁吗? 或者说 就是这些函数: pthread_create() pthread_exit() pthread_detach() ..and 不就是这些吗?或者说 还能有丶什么 呢? 于是,在linux 下准备学习 pthread 线程 博主:Jagen在路上 地址: 在Linu原创 2017-09-15 22:54:29 · 645 阅读 · 0 评论 -
C++ 实现阻塞队列
文章出处,来源自地址: C++ 实现阻塞队列 文章 详细代码: #include <queue> #include <thread> #include <mutex> #include <condition_variable> template <typename T, typename Container = std::queue&l...转载 2019-04-16 17:14:22 · 1871 阅读 · 0 评论