2023年4月10日

c++ stdcall 方式与 C# 传递 struct 数据类型?

摘要: using namespace std; #include <iostream> #include <thread> #include <mutex> struct MyStruct { char* myString; int length; // other members }; #ifdef _ 阅读全文

posted @ 2023-04-10 14:59 空明流光 阅读(120) 评论(0) 推荐(0)

c++ 多线程摘记

摘要: 有没有 linux 和 windows 通用的 多线程库? 是的,C++11 标准引入了一个名为 std::thread 的多线程库,它可以在 Windows 和 Linux 上使用。std::thread 库提供了一种方便的方式来创建和管理线程,包括启动、等待、终止和同步线程。此外,它还提供了一些 阅读全文

posted @ 2023-04-10 14:47 空明流光 阅读(60) 评论(0) 推荐(0)

导航