首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

BoneCP源码——BoneCP中施用的多线程

2013-03-17 
BoneCP源码——BoneCP中使用的多线程//@Overridepublic void run() {try {this.connectionHandle.setThreadW

BoneCP源码——BoneCP中使用的多线程
//@Overridepublic void run() {try {this.connectionHandle.setThreadWatch(Thread.currentThread());// wait for the thread we're monitoring to die off.this.threadToMonitor.join(this.closeConnectionWatchTimeout);if (!this.connectionHandle.isClosed() && this.threadToMonitor.equals(this.connectionHandle.getThreadUsingConnection())){logger.error(this.stackTrace);}} catch (Exception e) {// just kill off this threadif (this.connectionHandle != null){ // safetythis.connectionHandle.setThreadWatch(null);}} }?

?

热点排行