会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
MoonXu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
61
下一页
2021年8月11日
windows多线程加锁
摘要: mutex = CreateMutex(NULL, false, NULL); WaitForSingleObject(mutex, INFINITE); ReleaseMutex(mutex); CloseHandle(mutex);
阅读全文
posted @ 2021-08-11 14:40 MoonXu
阅读(260)
评论(0)
推荐(0)
2021年8月3日
windows server 2012不显示此电脑
摘要: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
阅读全文
posted @ 2021-08-03 11:12 MoonXu
阅读(87)
评论(0)
推荐(0)
2021年7月22日
pthread_cond_wait
摘要: 前要先加锁pthread_cond_wait内部会解锁,然后等待条件变量被其它线程激活 pthread_cond_wait被激活后会再自动加锁 激活线程: 加锁(和等待线程用同一个锁) pthread_cond_signal发送信号 解锁 线程便会调用pthread_cond_wait阻塞自己,但是
阅读全文
posted @ 2021-07-22 16:23 MoonXu
阅读(337)
评论(0)
推荐(0)
2021年7月21日
解决ubuntu与主机Ping不通
摘要: netsh winsock reset 打开虚拟机前选择net模式 重启电脑
阅读全文
posted @ 2021-07-21 11:46 MoonXu
阅读(894)
评论(0)
推荐(0)
2021年7月20日
cpp6 std::future
摘要: future对象通过以下方式获得 async promise::get_future packaged_task::get_future
阅读全文
posted @ 2021-07-20 17:37 MoonXu
阅读(43)
评论(0)
推荐(0)
cpp5 std::packaged_task
摘要: 类似于std::function,它会把结果自动到转移到future对象 int countdown (int from, int to) { for (int i=from; i!=to; --i) { std::cout << i << '\n'; std::this_thread::sleep
阅读全文
posted @ 2021-07-20 17:29 MoonXu
阅读(63)
评论(0)
推荐(0)
cpp4 std::function
摘要: std::function<int(int,int)> foo,bar;用函数类型初始化模板参数
阅读全文
posted @ 2021-07-20 17:24 MoonXu
阅读(44)
评论(0)
推荐(0)
cpp3 std::bind
摘要: double my_divide (double x, double y) {return x/y;} int main () { using namespace std::placeholders; // adds visibility of _1, _2, _3,... // binding f
阅读全文
posted @ 2021-07-20 17:10 MoonXu
阅读(69)
评论(0)
推荐(0)
cpp2 std::forward
摘要: Returns an rvalue reference to arg if arg is not an lvalue reference. If arg is an lvalue reference, the function returns arg without modifying its ty
阅读全文
posted @ 2021-07-20 17:02 MoonXu
阅读(42)
评论(0)
推荐(0)
2021年5月26日
http发送视频流
摘要: c->s GET /media/simple?path=/home/xpy/http/example/huoyuanjia.mp4 HTTP/1.1Host: 192.168.233.128:8000Accept: */*Accept-Language: en_USUser-Agent: VLC/3
阅读全文
posted @ 2021-05-26 17:21 MoonXu
阅读(1141)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
61
下一页
公告