Poco库
文章平均质量分 78
关于Poco库的学习
敬先生
这个作者很懒,什么都没留下…
展开
-
workflow源码解析:GoTask
提供了另一种更简单的使用计算任务的方法,模仿go语言实现的go task。使用go task来实计算任务无需定义输入与输出,所有数据通过函数参数传递。原创 2024-01-18 22:09:36 · 452 阅读 · 0 评论 -
【Poco库源码解析】Poco库的事件
(1)source.theEvent += Poco::delegate(&target, &Target::onEvent)时, Poco::delegate会创建Delegate<TObj, void, true>(pObj, NotifyMethod);(2) += 会 _strategy.add(aDelegate);将代理保存在_strategy, _strategy默认是 DefaultStrategy。原创 2024-01-18 15:36:00 · 1020 阅读 · 0 评论 -
【Poco库源码解析】Poco库中的通知
PocoPocoPoco 中的通知,是消息源通过中间载体将消息发送给观察者,通知可以分为同步通知和异步通知。Poco 中的异步通知是通过 NotificationQueue 类来实现的,同它功能类似还有类PriorityNotificationQueue 和 TimedNotificationQueue。不同的是 PriorityNotificationQueue类中对消息分了优先级,对优先级高的消息优先处理;原创 2024-01-18 13:55:57 · 794 阅读 · 0 评论