Merge remote-tracking branch 'origin/tzskwcs_3' into tzskwcs_3
| | |
| | | private MainServiceImpl mainService; |
| | | // 所属线程 |
| | | private Thread thread; |
| | | // 所属线程 |
| | | private Thread agvThread; |
| | | // 频率 |
| | | private int i = 0; |
| | | |
| | |
| | | } |
| | | |
| | | public void agvStart(){ |
| | | thread = new Thread(() -> { |
| | | agvThread = new Thread(() -> { |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | | |
| | |
| | | } |
| | | } |
| | | }); |
| | | thread.start(); |
| | | agvThread.start(); |
| | | } |
| | | |
| | | @PreDestroy |
| | | public void shutDown(){ |
| | | if (thread != null) thread.interrupt(); |
| | | if (agvThread != null) agvThread.interrupt(); |
| | | } |
| | | |
| | | } |