摘要: /** * Observer Design Pattern * * Intent: Lets you define a subscription mechanism to notify multiple objects * about any events that happen to the ob 阅读全文
posted @ 2023-12-24 19:56 一梦、 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <thread> #include <mutex> class Singleton { private: static Singleton* pinstance_; static std::mutex mutex_; protected: S 阅读全文
posted @ 2023-12-24 19:37 一梦、 阅读(2) 评论(0) 推荐(0) 编辑