![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++
lxsbupt
这个作者很懒,什么都没留下…
展开
-
多线程同步
#include #include #include #include #include #include #include #include #include "clock.h"std::deque task_queue;pthread_mutex_t g_mutex;pthread_cond_t g_cond;FILE* g_fp =原创 2014-08-04 06:00:48 · 273 阅读 · 0 评论 -
读取线程
void* read_func(void* obj){ pthread_detach(pthread_self()); //pthread_cleanup_push(cleanup_handler, NULL); const char* file = (const char*)(obj); FILE* fp = fopen(file, "r");原创 2014-08-04 06:45:21 · 373 阅读 · 0 评论 -
讲整数转换为字符串
char* my_itoa(int integer){ int len = 1; int unum = integer; bool passive = false; if (integer { len += 1; passive = true; unum = ~(integer - 1);原创 2014-08-04 06:37:36 · 379 阅读 · 0 评论 -
STL之deque容器的实现框架
http://blog.csdn.net/jxh_123/article/details/34114139转载 2015-01-16 16:08:23 · 390 阅读 · 0 评论