转自:http://www.cnblogs.com/skywang12345/p/3514623.html(部分修改) 概要 本章对AtomicReference引用类型的原子类进行介绍。内容包括: AtomicReference介绍和函数列表 AtomicReference源码分析(基于JDK1. ...
分类:
编程语言 时间:
2018-11-04 21:01:30
阅读次数:
139
WaitForWALToBecomeAvailable:if(!InArchiveRecovery)currentSource=XLOG_FROM_PG_WAL;elseif(currentSource==0)currentSource=XLOG_FROM_ARCHIVE;for(;;){intoldSource=currentSource;if(lastSourceFailed){switch(
分类:
数据库 时间:
2018-11-04 19:24:42
阅读次数:
258
今天把Xcode升级了,模拟器 用的12.1的系统,运行时发现项目总是崩溃,采用9.3系统的测试机发现错误日志如下: Application windows are expected to have a root view controller at the end of application l ...
分类:
移动开发 时间:
2018-10-31 15:48:52
阅读次数:
198
环境搭建 Hadoop集群搭建 写在前面,前面我们快速搭建好了centos的集群环境,接下来,我们就来开始hadoop的集群的搭建工作 实验环境 Hadoop版本:CDH 5.7.0 这里,我想说一下,我们我没有选择官方版本,是因为,cdh版本已经解决好了各个组件之间的依赖。因为,后面,我们还会使用 ...
分类:
其他好文 时间:
2018-10-31 15:37:14
阅读次数:
250
1.报错内容 /usr/lib/lua/luci/dispatcher.lua:533: bad argument #1 to 'pairs' (table expected, got nil)stack traceback: [C]: in function 'pairs' /usr/lib/lu ...
分类:
其他好文 时间:
2018-10-24 15:17:00
阅读次数:
473
题目:二叉树中和为某一值的路径 要求:输入一颗二叉树的跟节点和一个整数,打印出二叉树中结点值的和为输入整数的所有路径。路径定义为从树的根结点开始往下一直到叶结点所经过的结点形成一条路径。 解题代码: 时间有限,先把答案放到这里,有时间再过来添加详细内容。 ...
分类:
其他好文 时间:
2018-10-21 22:27:13
阅读次数:
169
执行 npm run dev 错误 error Expected linebreaks to be 'CRLF' but found 'LF' 解决方法 在.eslintrc文件 rules 里面 配置 "linebreak-style": [0 ,"error", "windows"], //允许 ...
分类:
其他好文 时间:
2018-10-17 14:50:53
阅读次数:
267
一、异常原因与异常源码分析 对集合(List、Set、Map)迭代时对其进行修改就会出现java.util.ConcurrentModificationException异常。这里以ArrayList为例,例如下面的代码: ArrayList类中包含了实现Iterator迭代器的内部类Itr,在It ...
分类:
编程语言 时间:
2018-10-13 14:49:21
阅读次数:
136
一:安装haproxy 1:解压 编译 安装 tar zxf haproxy-1.7.9.tar.gz cd haproxy-1.7.9 uname -e make TARGET=linux2.6 PREFIX=/usr/local/haproxy make install PREFIX=/usr/ ...
分类:
其他好文 时间:
2018-10-11 12:58:10
阅读次数:
165