随笔分类 -  C++

摘要:最近项目需要控制子线程执行一段程序之后,等待主线程信号,达到同步执行的目的, 研究了下condition_variable ,以便项目中使用 #include <thread> #include <iostream> #include "glock.h" #include "mylogger.h" 阅读全文
posted @ 2023-11-13 11:04 开花石头 阅读(31) 评论(0) 推荐(0)
摘要:1. 使用统一的调用约束(__stdcall) 2. array of 调用 delphi 接口: procedure ProcessArray(const Arr: array of Integer); stdcall; VC: typedef void(__stdcall *ProcessArr 阅读全文
posted @ 2023-11-10 16:35 开花石头 阅读(31) 评论(0) 推荐(0)