![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thread
oiooooio
这个作者很懒,什么都没留下…
展开
-
Code::blocks 下用_beginthreadex创建一个简单的线程
#include #include #include __stdcall unsigned ThreadFunction(PVOID data) { int tmpValue = 10000; printf("Thread goes on 10 second. And Thread can be countdown.\n"); while(TRUE) {原创 2014-02-08 10:15:30 · 659 阅读 · 0 评论 -
boost::asio tcp socket 的使用示例
// ThreadTest.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "boost/thread.hpp" #include "boost/shared_ptr.hpp" #include "boost/asio.hpp" #include "boost/bind.hpp" #include #include typedef原创 2015-03-19 19:13:25 · 1884 阅读 · 0 评论 -
Enable multithreading to use std::thread: Operation not permitted
buildoptions{"-g3"} buildoptions{"-Wreturn-type"} buildoptions{"-std=c++11"} --buildoptions{"-pthread"} --buildoptions{"-Wl,--no-as-needed"} --buildoptions{"-Wno-multichar"} --buildoptions{"原创 2015-09-16 11:11:48 · 960 阅读 · 0 评论 -
sql 之 c++测试代码
void TestConcurrentReadDataFromMysql(uint64_t uid, uint32_t threadCnt, uint32_t size, std::atomic& currentThreadCnt) { struct StatisticsTimeConsume { uint32_t _size; struct timeval _t; }; type原创 2015-10-28 10:26:25 · 512 阅读 · 0 评论