上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 51 下一页
摘要: 代码 #include <stdio.h> #include <curl/curl.h> #include <iostream> using namespace std; static size_t WriteMemoryCallback(void* ptr, size_t size, size_t 阅读全文
posted @ 2021-11-22 18:15 冰糖葫芦很乖 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 翻译来自:https://thispointer.com/how-to-put-a-thread-to-sleep-in-c11-sleep_for-sleep_until/ 在本文中,我们将讨论如何让 c++11 线程休眠 c++11提供了2个让线程休眠的函数,即 std::this_thread 阅读全文
posted @ 2021-11-18 20:46 冰糖葫芦很乖 阅读(6430) 评论(0) 推荐(0) 编辑
摘要: 转载来自:https://blog.csdn.net/hk627989388/article/details/53098484/ 这位兄台得评论 string UTF8ToGBK(const std::string& strUTF8) { int len = MultiByteToWideChar( 阅读全文
posted @ 2021-11-18 18:40 冰糖葫芦很乖 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 方法: 1.文件读写 有进程权限.....导致renderer进程无法读文件 2.主进程给renderer进程加参数.... 这个没问题 但是因为参数太多了 我需要网络通信........同样不行 这个加上了 --allow-no-sandbox-job --no-sandbox 就可以了 但是 加 阅读全文
posted @ 2021-11-16 17:06 冰糖葫芦很乖 阅读(116) 评论(0) 推荐(0) 编辑
摘要: https://curl.se/libcurl/c/curl_easy_setopt.html 阅读全文
posted @ 2021-11-15 17:25 冰糖葫芦很乖 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 因为未知的东西而恐惧,因为他人的恐惧而恐惧,这是一件很糟糕的事情 此后少犯 转载来自:https://blog.csdn.net/zhangtracy/article/details/79044004 gn快速入门官方文档: https://gn.googlesource.com/gn/+/mast 阅读全文
posted @ 2021-11-12 20:41 冰糖葫芦很乖 阅读(2164) 评论(0) 推荐(0) 编辑
摘要: 转载来自: https://blog.csdn.net/namelcx/article/details/8939824 前面已经分析过,一个RenderProcess与一个主进程中的RenerProcessHost对应。RenderProcess到底在什么时候创建,答案是在RenerProcessH 阅读全文
posted @ 2021-11-12 08:56 冰糖葫芦很乖 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 翻译来自:https://thispointer.com/c11-start-thread-by-member-function-with-arguments/ 在这个文章 我们将讨论如何通过类的函数启动线程 以类的成员函数作为自己的线程函数 首先我们有一个Task类,有一个不是非静态成员函数exe 阅读全文
posted @ 2021-11-09 11:56 冰糖葫芦很乖 阅读(4117) 评论(1) 推荐(1) 编辑
摘要: 翻译来自:https://thispointer.com/c11-multithreading-part-10-packaged_task-example-and-tutorial/ 这一节我们将讨论 std::packaged_task std::packaged_task<>std::packa 阅读全文
posted @ 2021-11-08 19:41 冰糖葫芦很乖 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 这节是讨论怎么使用std::async来执行异步task 什么是std::asyncstd::async()是一个接受回调(函数或函数对象)作为参数的函数模板,并有可能异步执行它们 template <class Fn, class... Args> future<typename result_o 阅读全文
posted @ 2021-11-08 19:32 冰糖葫芦很乖 阅读(60) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 51 下一页