docs(libth): 完整的 README 文档,覆盖 API、架构、构建与使用示例
- 新增 4 个类的完整 API 说明(Thread/Fsm/ITask/Cv_wait) - "回字形"执行循环和两阶段构造的设计说明 - 构建、安装、链接、卸载的完整指引 - 可运行的使用示例代码 - 设计要点与注意事项(死锁风险、单次使用限制等) - 修正 C++ 标准版本为 C++20(与 Makefile 一致) fix(libth): Cv_wait.hpp 中 lcok 拼写错误修正为 lock
This commit is contained in:
1 parent
f214c862d3
commit
4506601773
2 files changed
+195
-10
No files matched your search
@@ -28,7 +28,7 @@ public:
|
||||
inline void WakeCv() /* 唤醒线程 */
|
||||
{
|
||||
{
|
||||
std::lock_guard<std::mutex> lcok(mtx);
|
||||
std::lock_guard<std::mutex> lock(mtx);
|
||||
flag = true;
|
||||
}
|
||||
cv.notify_all();
|
||||
|
||||
Reference in new issue
Block a user