Stella981 Stella981
2年前
CAT RuntimeException
Caused by: java.lang.RuntimeException: Duplicated name(home) found between handleInbound() of class com.dianping.cat.report.page.home.Handler and handleInbound() of c
Stella981 Stella981
2年前
Android中的常见通信机制和Linux中的通信机制
HandlerHandler是Android系统中的一种消息传递机制,起作用是应对多线程场景。将A进程的消息传递给B线程,实现异步消息处理。很多情况是将工作线程中需要更新UI的操作消息传递给UI主线程,而实现更新UI操作。因为工作线程和主线程是共享地址空间,即Handler实例对象mHandler位于线程间共享的内存堆上,工作线程和主线
Wesley13 Wesley13
2年前
C++ 11
std::terminate(); set_terminate,产生异常会调用该函数,默认是调用abortvoidhandler(){cout<<"error~~~~~~~~~~~~~~~~~~";}std::set_terminate(handler);//默认调用
Stella981 Stella981
2年前
Pipeline inbound(netty源码7)
netty源码死磕7Pipeline入站流程详解1\.Pipeline的入站流程在讲解入站处理流程前,先脑补和铺垫一下两个知识点:(1)如何向Pipeline添加一个Handler节点(2)Handler的出站和入站的区分方式1.1.HandlerContext节点的添加在
Stella981 Stella981
2年前
Android Looper,Handler,Message分析
LooperLooper的构造方法是private的,不可以在外部生成Looper的实例.最重要的几个变量:ThreadLocal :静态的,保存所有线程及其所关联的Looper实例.可以理解为这是一个Map,保存了线程\Looper的所有键值对.这里可以获取到所有的线程及其关联的Looper对象.当我们需要生成一个支持消息循环特性的
Stella981 Stella981
2年前
Android 异步加载
一般会使用线程Thread、Timer或者使用AsyncTask,而这些操作都是在在后台另外开一个线程给我们找数据,具体得到的数据需要使用Handler去更新UI,AsyncTask也是一样使用到的Handler只是它将Handler封装在了onPostExecute执行操作中。使用过AsyncTask的同学都知道一个异步加载数据最少要
Wesley13 Wesley13
2年前
vs2015 JS+EasyUI+C# Excel导出
前台:{id:'print',iconCls:'iconprint',text:'导出',handler:function(){varfilterRules$('dg').datagrid('options')
可莉 可莉
2年前
10.fabric
2017112515:23:22grpcdefaultworkerELG23ERRORio.netty.handler.codec.http2.DefaultHttp2Connection:181CaughtThrowablefromlisteneronStreamActive.java.la
Stella981 Stella981
2年前
Netty 学习笔记(1)
服务端启动流程packagecom.example.netty;importcom.example.netty.handler.HelloServerHandler;importio.netty.bootstrap.ServerBootstrap;importio.netty.cha