Commit f09113a0 LN

超时时间修改

1 个父辈 747bcc3c
...@@ -219,7 +219,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -219,7 +219,7 @@ namespace OnlineStore.DeviceLibrary
private void CheckFixture() private void CheckFixture()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
...@@ -1238,7 +1238,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1238,7 +1238,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (DeviceID.Equals(208)) if (DeviceID.Equals(208))
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
...@@ -1279,7 +1279,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1279,7 +1279,7 @@ namespace OnlineStore.DeviceLibrary
} }
internal bool HYOut51_WaitFree() internal bool HYOut51_WaitFree()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
......
...@@ -182,7 +182,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -182,7 +182,7 @@ namespace OnlineStore.DeviceLibrary
private object lockObj = ""; private object lockObj = "";
private void CheckFixture() private void CheckFixture()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
......
...@@ -20,7 +20,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -20,7 +20,7 @@ namespace OnlineStore.DeviceLibrary
private object lockObj = ""; private object lockObj = "";
private void CheckFixture() private void CheckFixture()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
......
...@@ -150,7 +150,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -150,7 +150,7 @@ namespace OnlineStore.DeviceLibrary
private object lockObj = ""; private object lockObj = "";
private void CheckFixture() private void CheckFixture()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
......
...@@ -77,7 +77,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -77,7 +77,7 @@ namespace OnlineStore.DeviceLibrary
private object lockObj = ""; private object lockObj = "";
private void T3C1_CheckFixture() private void T3C1_CheckFixture()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
......
...@@ -687,7 +687,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -687,7 +687,7 @@ namespace OnlineStore.DeviceLibrary
private object lockObj = ""; private object lockObj = "";
private void CheckFixture() private void CheckFixture()
{ {
if (Monitor.TryEnter(lockObj, 100)) if (Monitor.TryEnter(lockObj, TrayManager.mTimeOut))
{ {
try try
{ {
......
...@@ -15,7 +15,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -15,7 +15,7 @@ namespace OnlineStore.DeviceLibrary
{ {
public class TrayManager public class TrayManager
{ {
public static int mTimeOut = 20;
public static int StopDTime = 2000; public static int StopDTime = 2000;
public static bool DisTraySave = ConfigAppSettings.GetIntValue(Setting_Init.DisTraySave).Equals(1); public static bool DisTraySave = ConfigAppSettings.GetIntValue(Setting_Init.DisTraySave).Equals(1);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!