Skip to content

Commit

Permalink
解决获取点数卡顿问题
Browse files Browse the repository at this point in the history
  • Loading branch information
starmcc committed Apr 7, 2022
1 parent bc8881d commit 61d1480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/starmcc/beanfun/utils/FrameUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static boolean closeWindow(JFXStage jfxStage) {

public static void executeThread(Runnable runnable) {
if (Objects.isNull(THREAD_POOL) || THREAD_POOL.isShutdown()) {
THREAD_POOL = new ThreadPoolExecutor(3, 6,
THREAD_POOL = new ThreadPoolExecutor(1, 6,
0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>(1024),
new BasicThreadFactory.Builder().namingPattern("FrameUtils-schedule-pool-%d").daemon(true).build(),
Expand Down

0 comments on commit 61d1480

Please sign in to comment.