Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
caopu16
whatsmars
提交
d54a3061
W
whatsmars
项目概览
caopu16
/
whatsmars
与 Fork 源项目一致
Fork自
武汉红喜 / whatsmars
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d54a3061
编写于
8月 05, 2019
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
optimise
上级
e40bee8f
变更
16
显示空白变更内容
内联
并排
Showing
16 changed file
with
20 addition
and
24 deletion
+20
-24
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/UtilAll.java
...c/main/java/org/hongxi/whatsmars/common/util/UtilAll.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/AtomicPositiveInteger.java
...atsmars/common/util/concurrent/AtomicPositiveInteger.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/ConcurrentHashSet.java
...i/whatsmars/common/util/concurrent/ConcurrentHashSet.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/ConcurrentTreeMap.java
...i/whatsmars/common/util/concurrent/ConcurrentTreeMap.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/CountDownLatch.java
...ngxi/whatsmars/common/util/concurrent/CountDownLatch.java
+5
-5
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/EagerThreadPool.java
...gxi/whatsmars/common/util/concurrent/EagerThreadPool.java
+1
-3
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/EagerThreadPoolExecutor.java
...smars/common/util/concurrent/EagerThreadPoolExecutor.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/ExecutorUtils.java
...ongxi/whatsmars/common/util/concurrent/ExecutorUtils.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/InternalThread.java
...ngxi/whatsmars/common/util/concurrent/InternalThread.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/InternalThreadLocal.java
...whatsmars/common/util/concurrent/InternalThreadLocal.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/InternalThreadLocalMap.java
...tsmars/common/util/concurrent/InternalThreadLocalMap.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/NamedInternalThreadFactory.java
...rs/common/util/concurrent/NamedInternalThreadFactory.java
+1
-3
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/NamedThreadFactory.java
.../whatsmars/common/util/concurrent/NamedThreadFactory.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/RoundQueue.java
...g/hongxi/whatsmars/common/util/concurrent/RoundQueue.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/TaskQueue.java
...rg/hongxi/whatsmars/common/util/concurrent/TaskQueue.java
+1
-1
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/concurrent/ThreadUtils.java
.../hongxi/whatsmars/common/util/concurrent/ThreadUtils.java
+1
-1
未找到文件。
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/UtilAll.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/
UtilAll.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common
;
package
org.hongxi.whatsmars.common
.util
;
import
lombok.extern.slf4j.Slf4j
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/AtomicPositiveInteger.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/
concurrent/
AtomicPositiveInteger.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.common.util
.concurrent
;
import
java.util.concurrent.atomic.AtomicIntegerFieldUpdater
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/ConcurrentHashSet.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/
concurrent/
ConcurrentHashSet.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.common.util
.concurrent
;
import
java.util.AbstractSet
;
import
java.util.ConcurrentModificationException
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
queue
/ConcurrentTreeMap.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/ConcurrentTreeMap.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
queue
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
import
java.util.Comparator
;
import
java.util.Map
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
CountDownLatch2
.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent/CountDownLatch
.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common
;
package
org.hongxi.whatsmars.common
.util.concurrent
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.locks.AbstractQueuedSynchronizer
;
...
...
@@ -6,17 +6,17 @@ import java.util.concurrent.locks.AbstractQueuedSynchronizer;
/**
* Add reset feature for @see java.util.concurrent.CountDownLatch
*/
public
class
CountDownLatch
2
{
public
class
CountDownLatch
{
private
final
Sync
sync
;
/**
* Constructs a {@code CountDownLatch
2
} initialized with the given count.
* Constructs a {@code CountDownLatch} initialized with the given count.
*
* @param count the number of times {@link #countDown} must be invoked before threads can pass through {@link
* #await}
* @throws IllegalArgumentException if {@code count} is negative
*/
public
CountDownLatch
2
(
int
count
)
{
public
CountDownLatch
(
int
count
)
{
if
(
count
<
0
)
{
throw
new
IllegalArgumentException
(
"count < 0"
);
}
...
...
@@ -140,7 +140,7 @@ public class CountDownLatch2 {
}
/**
* Synchronization control For CountDownLatch
2
.
* Synchronization control For CountDownLatch.
* Uses AQS state to represent count.
*/
private
static
final
class
Sync
extends
AbstractQueuedSynchronizer
{
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadpool
/EagerThreadPool.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/EagerThreadPool.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.threadpool
;
import
org.hongxi.whatsmars.common.threadlocal.NamedInternalThreadFactory
;
package
org.hongxi.whatsmars.common.util.concurrent
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.ThreadPoolExecutor
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadpool
/EagerThreadPoolExecutor.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/EagerThreadPoolExecutor.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
threadpool
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
import
java.util.concurrent.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/ExecutorUtils.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/
concurrent/
ExecutorUtils.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.common.util
.concurrent
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadlocal
/InternalThread.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/InternalThread.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
threadlocal
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
/**
* InternalThread
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadlocal
/InternalThreadLocal.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/InternalThreadLocal.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
threadlocal
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
import
java.util.Collections
;
import
java.util.IdentityHashMap
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadlocal
/InternalThreadLocalMap.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/InternalThreadLocalMap.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
threadlocal
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
import
java.util.Arrays
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadlocal
/NamedInternalThreadFactory.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/NamedInternalThreadFactory.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.threadlocal
;
import
org.hongxi.whatsmars.common.util.NamedThreadFactory
;
package
org.hongxi.whatsmars.common.util.concurrent
;
/**
* NamedInternalThreadFactory
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/NamedThreadFactory.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/
concurrent/
NamedThreadFactory.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.common.util
.concurrent
;
import
java.util.concurrent.ThreadFactory
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
queue
/RoundQueue.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/RoundQueue.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
queue
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
import
java.util.LinkedList
;
import
java.util.Queue
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
threadpool
/TaskQueue.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/
util/concurrent
/TaskQueue.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.
threadpool
;
package
org.hongxi.whatsmars.common.
util.concurrent
;
import
java.util.concurrent.LinkedBlockingQueue
;
import
java.util.concurrent.RejectedExecutionException
;
...
...
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/ThreadUtils.java
→
whatsmars-common/src/main/java/org/hongxi/whatsmars/common/util/
concurrent/
ThreadUtils.java
浏览文件 @
d54a3061
package
org.hongxi.whatsmars.common.util
;
package
org.hongxi.whatsmars.common.util
.concurrent
;
import
lombok.extern.slf4j.Slf4j
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录