From 0063ec83f9b3579ee9eb3b7bbcfc869c9992866a Mon Sep 17 00:00:00 2001 From: Liang Su Date: Wed, 14 Jun 2023 16:05:58 +0800 Subject: [PATCH] =?UTF-8?q?[Common]=20=E4=BF=AE=E6=AD=A3DeviceManagerBase?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=5FoptionDevice=E5=88=97=E8=A1=A8=E5=A4=9A?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B=E8=AE=BF=E9=97=AE=E6=97=B6=E8=A2=AB=E6=84=8F?= =?UTF-8?q?=E5=A4=96=E4=BF=AE=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Aitex/Core/RT/Device/DeviceManagerBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MECF.Framework.Common/Aitex/Core/RT/Device/DeviceManagerBase.cs b/MECF.Framework.Common/Aitex/Core/RT/Device/DeviceManagerBase.cs index b1faa65..1723c1f 100644 --- a/MECF.Framework.Common/Aitex/Core/RT/Device/DeviceManagerBase.cs +++ b/MECF.Framework.Common/Aitex/Core/RT/Device/DeviceManagerBase.cs @@ -1,5 +1,6 @@ #define DEBUG using System; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -24,7 +25,7 @@ namespace Aitex.Core.RT.Device private R_TRIG _trigExceed500 = new R_TRIG(); - private List _optionDevice = new List(); + private ConcurrentBag _optionDevice = new ConcurrentBag(); private object _lockerDevice = new object();