![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ICE中间件
CherishPrecious
这个作者很懒,什么都没留下…
展开
-
IceThread实现的工作队列
主线程向队列中添加任务;工作线程在循环中处理任务,没有任务的时候会阻塞;源码如下:#include <IceUtil/Thread.h>#include <IceUtil/Exception.h>#include <IceUtil/Monitor.h>#include <IceUtil/Mutex.h>#include <...原创 2018-08-13 21:23:26 · 365 阅读 · 0 评论 -
ICE异步调用:客户端AMI,服务器AMD
客户端向服务器发出远程调用请求后立即返回,不会阻塞等待;服务器接收到来自客户端的请求后,把任务放到线程队列中,让工作线程的空闲的时候处理,而不是等待处理。ICE定义:#ifndef HELLO_ICE#define HELLO_ICEmodule Demo{exception RequestCanceledException{};interface Hello{...原创 2018-08-13 21:29:31 · 633 阅读 · 1 评论