点击或拖拽改变大小

CommunicationLockSimple 类

用于通信的一个简单的基元混合锁
继承层次
SystemObject
  HslCommunication.CoreCommunicationLockNone
    HslCommunication.CoreCommunicationLockSimple

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
public class CommunicationLockSimple : CommunicationLockNone

CommunicationLockSimple 类型公开以下成员。

构造函数
  名称说明
公共方法CommunicationLockSimple
初始化 CommunicationLockSimple 类的一个新实例
Top
属性
  名称说明
公共属性IsWaitting
获取当前锁是否在等待当中
Gets whether the current lock is waiting
Top
方法
  名称说明
公共方法Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(继承自 CommunicationLockNone。)
受保护的方法Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(重写 CommunicationLockNoneDispose(Boolean).)
公共方法EnterLock
进入锁操作,指定超时时间,单位毫秒,并返回是否成功获得锁的标记。
Enters the lock operation, specifies the timeout period in milliseconds, and returns a flag as to whether the lock was successfully obtained.
(重写 CommunicationLockNoneEnterLock(Int32).)
公共方法Equals
Determines whether the specified object is equal to the current object.
(继承自 Object。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
公共方法LeaveLock
离开锁操作
Lockaway operation
(重写 CommunicationLockNoneLeaveLock.)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法ToString
Returns a string that represents the current object.
(重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见